score:2
Accepted answer
the first parameter of $.getjson()
must be a url (http://api.jquery.com/jquery.getjson/).
so, you can start by putting here a url that responds to a get request with an array, or removing this ajax call, and put directly the result of <%= @yearly_complaints.to_json.html_safe %>
into a javascript variable (would be in data
here).
Source: stackoverflow.com
Related Query
- Strange character in the Highstock source code
- HTML table as data source for highstock charts using highcharts
- DotNet.HighCharts - PieChart by populating data by code
- Populating data to Highstock
- Highstock highcharts irregular data gets wrong x-scale
- Show gap of missing data with Highstock
- How to extract the data from highstock chart
- Highcharts - Global configuration with common code and unique data & Headings
- How to load 60,000 data points without datagrouping in highstock chart?
- How do I prevent Highstock right range handle keep slipping off the max value when adding data
- Highcharts Populating Realtime Data with Time
- Highstock tooltip Formatter not able to display extra data
- Is there a way to load data into Highstock without the use of PHP?
- Setting additional point attributes in HighStock time series with large data sets
- How to show plotlines on highstock when its set much higher than the data series?
- Highstock Time series with uneven data set distrubition
- Make Highchart and Highstock Have a Uniform Time X-Axis for Disparate Data Points
- Highstock shared tooltip multiple series - show data for line when not on point
- Highstock panning asynchronously loading data
- JSON data not showing in highstock Candlestick chart using PHP & MYSQL
- Highstock mysql json multiple data
- Plotting data on x axis in Highstock
- Change color code on colum, depending on data value (highchartJS)
- Highstock Highcharts date time data on Xaxis
- Can not get series data in Highcharts, Highstock
- How to process csv data (datetime) month, week, day, hour in highstock highcharts
- Error in highstock chart. Data is undefined in tooltip
- Wrong data display when i set multiple series type in highstock chart
- Pass data to click event callback in Highstock chart with more then 1000 entries
- Have an issue with JavaScript, AJAX code displaying data
More Query from same tag
- ChartJS/High Charts Radar chart - Different radial axis labels for each category that appear on hover
- Fomatting labels on Y-axis in Highcharts with Data from HTML table
- Stacked y-Axis on Highcharts, how to make it one?
- Graph with Highcharts in new window
- Show live data on Highcharts without default series
- Highcharts: How to show only one data »category« from CSV as a line
- How to plot a Stacked column chart using highcharts?
- Reading a CSV with Highchart
- How to calculate the weights in a Sankey chart?
- Highchart in ASP MVC page load not working properly
- Needing to convert JSON Object to JSON Array for Highcharts
- Create Line in Highcharts with start and end point
- Highcharts on rails app renders twice every time it's loaded
- How does HttpContext.Current.Response.Binarywrite work?
- How do I make a fixed range?
- Highcharts - Legend Positioning outside the chart
- Display percentage on tooltip highchart Angular 2
- Uncaught TypeError: Cannot read property '0' of undefined javascript error and with highcharts
- How to add dotted lines between two interval of x-axis in hightcharts
- Highcharts X-Axis labels as Text
- Updating data with Highcharts alters initial set
- How to manually trigger the afterSetExtremes event from a series click event in HighCharts
- HighMaps Zoom add bright instead of do zoom properly
- Highcharts same scale steps (equal tick interval) on x and y axis
- Integrating Ember bindings with highcharts
- How to change the legend data highcharts
- How to create monthly candlestick chart using daily data?
- Highchart : by passing FROM DATE and TO DATE x axis labels should set
- TypeError: Highcharts[h] is not a function
- Dynamically add/remove xaxis categories in Highcharts