score:2

Accepted answer

There are a couple of ways to create a Highcharts/Highstock chart, but that is not one of them.

In short you could use .highcharts('StockChart', ... instead of .highstock(....

Highstock stock chart

jQuery specific:

$('#output').highcharts('StockChart', { 
    // options 
});

General:

new Highcharts.StockChart({ 
    chart: { 
        renderTo: 'output' 
    } 
    // rest of options 
});


Highcharts regular chart

jQuery specific:

$('#output').highcharts({ 
    // options 
});

General:

new Highcharts.Chart({ 
    chart: { 
        renderTo: 'output' 
    } 
    // rest of options 
});


I suggest reading up on the "Getting started" guide.


Related Articles