Reputation: 1286
I added two time series in highstock , but after running the sample , I get this error : Highcharts error #15 in console also browser does not show properly.I checked for this error but time series data is in ascending order only, so could not make out why this error coming up ?
$('#chartdiv').highcharts('StockChart', {
rangeSelector: {
selected: 2
},
legend: {
enabled: true
},
credits: {
enabled: false
},
chart: {
zoomType: 'x'
},
title: {
text: 'test highchart'
},
series: seriesOptions
});
Here is the fiddle for above issue.
Upvotes: 4
Views: 1512
Reputation: 2136
Your timeArr
array isn't sorted actually. Just adding this line gets rid of the error:
timeArr.sort();
See your updated JSFiddle here.
Upvotes: 2