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
- Setting max column amount in highchart column chart type
- Overlapping of highchart with it's series text
- level series in a highchart
- Create multiple Pie Highcharts for multiple series
- In Highcharts, my dataLabels disappear when re-enabling the rightmost element of my chart
- Highmaps mappie zooming issue
- Change json array format for highcharts
- Highcharts: Bar column alignment in x-axis in uniform manner
- Highcharts - Stacked column data series
- Highcharts - set yAxis.max to max value from data
- Storing Highcharts in array issue
- GWT - Adding a button to HighCharts
- Produce highcharts multiple line chart from JSON / MySQL data
- HighCharts selects the wrong data point
- Highstock datetime xAxis, can only show all. no zoom
- Highcharts Get legend "icon" in tooltip
- Highcharts date misunderstood
- Change the color of bar on condition in highcharts
- How to calculate the height of bar chart
- Basic Highcharts Multiple Series Chart Using JSON
- Get Tooltip content from a point from a line/scatter plot in highcharts from javascript
- Highcharts 3 cannot render more than 1000 points in one series
- Adding symbols and annotations to Highchart date axis
- Not appear chart with Highcharts-ng
- I'm trying to have a hide series button on my highchart but it makes the chart disappear
- Displaying hours and minutes on x-axis with Highcharts
- Highcharts screen fitting issue
- Highcharts missing first date label on xAxis
- How to change rCharts Highchart Color based on Factor Variable
- highcharts map Zoom by a single click