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
- Y value minus 1 in tooltip HighCharts
- Highcharts column chart returning incorrect series index on click when using shared tooltip
- Format highcharts tooltip
- Donut Inner Text
- creating highchart from json file
- Highcharts - Bar chart show full label on Y Axis
- Highstock marker specific option ignored
- How to produce scatterplot with a factor as y in highcharter?
- Show two data labels in plotting column?
- Highcharts display value of the average with addPlotLine
- Big data amounts with Highcharts / Highstock (async loading)
- Highcharts y axis and x axis display
- HighCharts dynamically resize renderer label or element
- Highcharts spline dataLabels overlapping
- Highcharts X-Axis labels as Text
- Referencing a JSON object created in Java through javascript in the one JSP page
- Highcharts & jQuery: add a mark by clicking with Shift key pressed, then process on release
- Generic HighCharts (Javascript\Java)
- how can I make highlight markers in highchart
- JavaScript highcharts: how to have two xAxis categories?
- How to append dynamic values to the area chart in High charts or convert the data to arrays?
- Time setting for hour
- HighStocks Series Data format
- Highcharts showing points on hovering over the line which are outside the chart area when the chart is zoomed in
- How to make map with overlaid column charts using highmaps
- which rangeSelector button is selected in highcharts
- HighChart not getting data from server side?Error in parseJSON
- softMin/softMax for xAxis in HighStock doesnt set?
- DotNet HighCharts , Populates a pie with the result of a query
- Why can't I get individual bar colors in a candlestick chart in highstocks.js for more than 55 bars?