Highcharts Stock Demo
author(s):
Torstein Hønsi
HTML
<div id="container" style="height: 400px; min-width: 600px"></div>
<script src="https://code.highcharts.com/stock/highstock.js"></script>
<script src="https://code.highcharts.com/stock/modules/exporting.js"></script>
<script type="text/javascript" src="https://www.highcharts.com/samples/data/three-series-1000-points.js"></script>
JavaScript
$(function () {
Highcharts.stockChart('container', {
rangeSelector: {
selected: 1
},
plotOptions: {
series: {
showInNavigator: true // Global value
}
},
series: [{ // This series has no value set and will use global
name: 'MSFT',
data: MSFT
},
{
name: 'GOOGL',
showInNavigator: false, // Individual series value
data: GOOGL
},
{
name: 'ADBE',
showInNavigator: true, // Individual series value
navigatorOptions: { // Specific values that affect the series in the navigator only
type: 'line',
color: 'red'
},
data: ADBE
}]
});
});