score:2
events: {
load: function() {
// set up the updating of the chart each second
var series = this.series[0];
setInterval(function() {
$.getJSON('db.php', function(data) {
series.setData(data);
});
}, 1000);
}
},
1st, series is an array, so you'll want series[0]. 2nd, you need to use setData to change the series data after the chart is drawn (http://api.highcharts.com/highcharts#Series.setData())
It's not clear from your code if you're already doing it, but you will need to set the original series : [{data:[...]}]
Source: stackoverflow.com
Related Articles
- how do you call function to pull data automaticall to chart in highcharts
- How to hardcode chart data in my Model then have my Controller pull it from there to display it. Using Highcharts
- Highcharts display label for pie chart using html table as data source
- HighCharts column chart populated with series data from a function
- Highcharts chart update function causes missing data point
- React highcharts unable to call function from data label onclick
- Highcharts cloud issue with data source when duplicating chart
- Backfilling Highcharts chart with data from Ajax call
- Reload chart data via JSON with Highcharts
- Highcharts saying undefined is not a function when trying to add a new chart
- Highcharts not displaying data labels for Pie chart in arabic
- Using Highcharts and displaying a message over or on the chart when there is no data
- Highcharts stacked bar chart hide data labels not to overlap
- how to get chart object inside a point event function in Highcharts
- Pass Data String as parameter to a Function for HighCharts
- Ajax and Highcharts - Display 'loading' until data is retrieved, then populate chart
- Add dynamic data to line chart from mysql database with highcharts
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- Highcharts - Global configuration with common code and unique data & Headings
- Show more data on Gauge chart with Highcharts
- How to call typescript function inside High chart click event
- highcharts - precision for stacked column chart data labels
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- Highcharts chart not loading after AJAX call to insert partial containing chart
- Highcharts shows data but can't display chart
- Highcharts - Gauge chart data label not positioning correctly
- Highcharts 3d bar chart data labels position is wrong
- How to format my json data for stack column chart in HighCharts
- Centering a data label in Highcharts Bar Chart
- HighCharts Stock Chart error code 18
- HighChart pie tooltip fixed
- Why won't Highcharts accept UTC value from my JSON?
- How to merge two Highcharts container with the same legend-item
- Highcharts not displaying with csv/json and Flask
- How to access function of buit-in button in highcharts using asp.net
- HighCharts on hover change dataLabel's font size
- Highcharts event on animation complete?
- Highcharts stacked column stackLabels do not show when axis is reversed
- DateTime whout seconds React highcharts
- Make minPointLenght apply to all blocks in stacked column chart
- Always position Highcharts tooltip on top with respect to the marker point
- Highcharts issue when dealing with 3D pie and large labels
- Add Flag based on button event
- Changing colors of chart elements in r-highcharter
- How to fix this error Type 'number' has no properties in common with type 'XrangePointOptionsObject'
- AngularJS not loading directive correctly when using services
- customize Highcharts tooltip on marker points and show default tooltip on the other points
- Highcharts Additional data in Tooltip
- highcharts stacked column weird symbol in a bubble
- highcharts col width and border-top