score:2
Accepted answer
You are initally creating a chart with a single blank series here:
series: [{
data:[]
}]
chart.series[1]
(a second series) and chart.series[2]
(a third series) are therefore undefined.
A quick fix to your code could be:
var chart = $('#container').highcharts();
var series1 = [1, 52, 5, 98, 5, 929, 1, 9, 48];
var series2 = [1, 92, 35, 8, 25, 729, 61, 29, 38];
var series3 = [1, 59, 75, 26, 25, 829, 11, 19, 48];
chart.series[0].setData(series1, false); // setData on existing series, don't redraw
chart.addSeries({data: series2}, false); // add new series, don't redraw
chart.addSeries({data: series3}, true); // add new series, now redraw
Not the boolean arguments to the above methods will control the redraw.
Example here.
Source: stackoverflow.com
Related Query
- How to have multiple highcharts with different series data in vuejs without repeating code
- How to get multiple data series into Highcharts
- Highcharts with JSON data and multiple series
- Highcharts not displaying series data for graph with multiple Y-axes
- Multiple series data on HighCharts column
- Highcharts show the same yAxis start and end value with multiple data series
- Highcharts - how to create multiple y axis and group the data series
- Multiple series data Highcharts line
- Highcharts multiple data on single point in series
- Toggling 2nd pane data within a Multiple Series Highcharts Chart
- Highcharts series visibility with csv data source
- Loading json data to highcharts with multiple series
- Highcharts : using same div to load a chart multiple times with different series data
- Highcharts multiple series with missing Data Points
- Highcharts multiple data series
- HighCharts BoxPlot With Multiple Series Having Single Data
- Multiple series of data in Highcharts but second line graph is displayed squashed?
- HighCharts multiple x series data for line graph
- Highcharts Multiple Series data - label mismatch
- How to make multiple Y-axis with incoming series of data from database using Highcharts
- How to get multiple series data in tooltip highcharts (Without loosing tooltip pointer arrow)
- Highcharts displays series names but missing data points from json source
- How to set columnrange width to expand the length of the x-axis in multiple data series in Highcharts
- Set Additional Data to highcharts series
- Proper way to remove all series data from a highcharts chart?
- Changing data dynamically for a series in Highcharts
- Add additional data to a Highcharts series for use in formatters
- How to get multiple series data in tooltip highcharts?
- Get Highcharts Series Data after Load
- Highcharts doesn't display series with lots of data points
More Query from same tag
- Tooltip outside working in highcharts but not in highstock
- Highchart bars lower half gets disappeared
- How to create chart using Springboot Json api
- How to add image in Highcharts Title and subtitle
- Highcharts stacked bar with datetime, not able to set start date
- how to add new index Highcharts column drilldown chart
- Highcharts stock chart overflow above of yAxis lable
- Highcharts Scatter Plot - How to Fix Overlapping Data Labels?
- UTC number getting displayed on xAxis with highcharts
- highchart legend multiple position ? first legend left and 2nd legend right show in a chart
- HIghcharts individual plot point color
- make highcharts graph with data in json format, with 4-element array
- Is such graph possible to plot Using Highchart?
- use highmaps in .vue file
- JavaScript in laravel-dompdf
- AngularJS for Highcharts with dynamic ajax data
- How to draw a vertical line on HighCharts?
- How to change chart height in hchart() function in R (highcharter package) without using pipe operator?
- In Highstocks, how do I change the default time/day labels when hovering over graph?
- How can you align the left and right Y-axes of vertically stacked HighCharts charts?
- Highcharts Treemap Custom Width
- Accessing a Highmaps node from outside the map
- Highcharts - Should Is use data labels or annotation or something else and how?
- Populate JSON object to highchart bar chart
- Highcharts Table y-axis maximum value
- Unable to refer javascript array from another javascript file
- how do you create highcharts bar chart
- How to center line in ggplot2::geom_step() similar to highcharter
- Additional data in pointFormat of tooltip in highcarts
- upgrade to highstock 1.3.1 breaks resize code