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 Query
- 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
- How do you increase the performance of highcharts chart creation and rendering
- how to get chart object inside a point event function in Highcharts
- How get data name in Highcharts pie chart legend instead of "Slice" using array of values?
- How to call typescript function inside High chart click event
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How to format my json data for stack column chart in HighCharts
- How to Build a Column Chart in Highcharts with Data Entered Dynamically Within a CMS
- How To Call A Function To Make A Graph Using HighCharts in PHP
- How to construct HighCharts data series to match returned Json via ajax call
- Highcharts display label for pie chart using html table as data source
- How to bind data to line chart in highcharts in MVC3?
- HighCharts how to add live series data set to existing chart
- How to remove data gaps in HighCharts xAxis on a scatter chart
- How to call Highcharts tooltip formatter function from outside the config object?
- HighCharts column chart populated with series data from a function
- Is there a limit to how many data plots you can have on a highcharts graph
- Highcharts how to make a set number of colors for pie chart data and drilldown data
- How to update chart only on unique data in HighCharts
- How can i load external json data in highcharts to show the bar chart
- How can I get a data label in my Highcharts Pie Chart that is a font-awesome icon?
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to pass JSON data to update Highcharts Pie chart
- Highcharts how to pass data from server into chart
- how do you create custom buttons with highcharts that each data buttons calls anather php script for its data
- 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
- how to make chart real time with 2 line and get data from php with highcharts
More Query from same tag
- Highcharts don't render in Internet Explorer 11
- Highcharts bar and line issue
- Trying to render JS in RAILS causes issues
- html2canvas of a Highcharts chart not working fine on IE
- Get notice when a Highcharts chart is change after change the window size
- HighCharts Bug with LiveChart
- sort chart bar by color with the correct value from the text file using HIGHCHART,PHP
- Highcharts display percentage of hidden series
- How can I get highcharter to represent a forecast object?
- Is there a way to call two function-based views from views.py from one url? - Django or even by using Class-based view
- Color coutries/continents with own custom colors in highmaps
- How to show xAxis categories up to the each chart in Bar-Highcharts library?
- How to add and resize image in context button of highcharts
- Highcharts over extends parent on resize (using flexbox)
- Highcharts custom SVG marker
- Highchart export not applying style(font size) on series data labels
- Highcharts Time Data With Irregular Intervals In Wrong Order
- Highcharts: y-axis labels are missing
- styling of particular segments in highchart axis
- Single Quotes not showing up properly in HighCharts graph
- Display only groups in Highcharter
- Creating a directive for window resizing
- How to make Javascript output brackets for an Array of Arrays. (For Highcharts)
- Manually adding text over pie chart
- Highcharts Multiple Series data - label mismatch
- date highstock highchart
- How do i limit the range of the x or y value in High charts?
- When changing data, why is the data reduced every time the button is pressed?
- Image inside Highcharts ring
- How to draw pile/stacked bar chart?