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
- Highlight multiple series in Highcharts
- Highchart Axis with only min and max series value
- Highcharts Data Not Showing on Ajax Call
- Android highcharts library chart loading completed listener event
- Yii HighCharts not displaying from $vars but display when hardcoded
- How to add Modal pop up on nodes of org chart Highcharts
- Highchart how to use custom javascript variable in highchart?
- HighChart Stacked column bar
- Timeline / Schedule in highcharts
- Can highcharts drilldown of a chart, reflect on another chart?
- Highcharts Variable Pie
- Highcharts: Selecting single series from plot with multiple series
- How can I graph two sensor data values with Highcharts?
- How to make map with overlaid column charts using highmaps
- How to get Number of new users per day to DotNet.HighChart
- Tooltip doesn't display on highchart graph
- JavaScript highcharts: how to have two xAxis categories?
- Highchart, dynamically change the chart type
- How to add synchronized-charts in drilldown?
- Highmaps caribbean map
- Dynamically update highchart series in meteor
- Dynamically populate highcharts data
- Highcharts tooltip overlapped by absolute positioned element
- Highcharts column chart with data from mongodb
- Highcharts donut hover all area
- highcharts x-axis is displaying the wrong data
- Highchart - Show/hide datalabel on click
- Highcharts columns height in phantomjs generated pdf
- How to sort order highchart pie jasperstudio by slice value min to max
- How to change Time Zone in Angular2-HighCharts?