highslide-software/highcharts.com — Issue #717: predefined series.data object is discarded after creating chart.
Author: gvaartjes
Created: 2012-01-23 14:04:33+00:00
State: open

See this example http://jsfiddle.net/NNdx9/.

var series = [{
name:'llexl1',
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}];

console.log('I\'m not null ' + series[0].data); // still alive!

var chart = new Highcharts.Chart({
chart: {
renderTo: 'container'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
series: series
});

console.log('I\'m null' + series[0].data); dead!!