score:2
Accepted answer
success: function (items) {
var obj = jsonparse(items.d);
$.each(obj, function (itemno, item) {
series = new array();
if (itemno == 0) {
series.data = item.data;
series.name = item.name;
series.type = item.type;
} else if (itemno == 1) {
series.type = item.type;
series.data = item.data;
series.name = item.name;
series.center = item.center;
series.size = item.size;
series.showinlegend = item.showinlegend;
}
options.series.push(series);
});
chart = new highcharts.chart(options);
console.log(options);
},
this loop never adds a second series, you are only getting the last one in the loop because it is over writing the one before.
my changes may solve the problem, i am not near a computer at the moment to check.
Source: stackoverflow.com
Related Query
- Constructing a combination chart with Highcharts
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- Constructing a guage chart with Highcharts
- Highcharts cloud issue with data source when duplicating chart
- Highcharts column + line combination chart with multiple series
- Reload chart data via JSON with Highcharts
- Highcharts - how to have a chart with dynamic height?
- dealing with highcharts bar chart with really long category names
- Highcharts scatter chart with a name per point
- Highcharts / jQuery - destroy and rebuild chart with original options
- Highcharts : Chart with drilldown how to obtain click event of drill up button
- Highcharts export chart exportSettings with svg file
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts chart with 'datetime' xAxis - use categories on drilldown
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- exporting highcharts polar chart to PDF with phantomjs
- Highcharts - Scatter chart with a line connecting the dots in the series
- Highcharts blank chart with x and y axis
- Resize a chart before printing with Highcharts
- Add dynamic data to line chart from mysql database with highcharts
- Add onclick event on chart made with the highcharts library
- Highcharts with reveal.js: Refresh chart with slide?
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts - Column/bar chart with target lines
- creating a bar chart using Highcharts with React - getting an error that rendering div isn't found
- Show more data on Gauge chart with Highcharts
- Highcharts Grouped Column Chart with Multiple Groups?
- Timeline chart with highcharts using x-range with multiple stacks
More Query from same tag
- How can I get a chart only with legends using highcharts
- Highcharts Graph not recreating on same Android activity
- *Highcharts* Tooltip formatter for a combined chart
- Highcharts Waterfall low value for yAxis point
- Highcharts and highstock license with google ads web site
- How to add separate annotation style tooltip for Highcharts marker?
- HIGHCHARTS - Jquery/Ajax access php variables from the php file called by ajax
- Plot aspect ratio
- How to Change Legend Text of a Chart Object in Crystal Reports 10
- highchart/highstock tooltip does not adjust after zoom
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- Highcharts - How to force dataLabels to show labels when overlapping the content
- charts highcharts add spacethe right side
- Highcharts - Column/bar chart with target lines
- highcharts pulling data from database table
- HighCharts: Resize markers of scatter chart dynamically
- Angular multi select chart
- Does the Highcharts-Vue wrapper support 'gauge' and 'heatmap' chart types?
- Django Chartit Not Displaying
- How to plot against time on x-axis Highcharts.js
- Highcharter: Add a string variable into a tooltip
- Highcharts - Why is there extra spacing before the first column and after the last column?
- How to combine Bar chart and data as table in High Charts
- Highcharts stacked bar data from CSV
- How can you change the "label" (valueSuffix) on a highcharts gauge after the gauge has been created?
- HighCharts Series Data Structure Issue. JSFiddle link provided
- Highcharts set xAxis values starting 12am and ends in 11pm
- how do you change the color of cells in highcharts heatmap?
- Hide names in Highcharts Venn Diagram
- Adding series markers to highcharts area chart