highslide-software/highcharts.com — Issue #646: Highstock eternal loop, when created with empty seriedata
Author: highslide-software
Created: 2011-12-15 13:16:17+00:00
State: open
Labels: Bug, Highstock

1. Create chart with an initially empty data array, two datasets and two y-axis

var chart = new Highcharts.StockChart({
chart: {
renderTo: 'container',
alignTicks: false
},
title: {
text: 'AAPL Historical'
},

xAxis: {
maxZoom: 14 * 24 * 3600000,
},
yAxis: [{
title: {
text: 'OHLC'
},
height: 200,
lineWidth: 2},
{
title: {
text: 'Volume'
},
top: 300,
height: 100,
offset: 0,
lineWidth: 2}],

series: [{
type: 'line',
name: 'AAPL',
data: []

},
{
type: 'area',
name: 'Volume',
data: [],
yAxis: 1,

}]
});