Bhupendra
Bhupendra

Reputation: 1286

Highstock giving error 15

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

Answers (1)

Kabulan0lak
Kabulan0lak

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

Related Questions