series: [{
type: '<%=m_sType %>',
name: 'Stock Price',
id: 'dataseries',
data: (function () {
var success = area;
$('.chartType').click(function() {
var href = $(this).attr('href');
if(href == '#CandleStick' || href == '#OHLC'){
success = ohlc;
}
else{
success = area;
}
});
return success;
}()),
dataGrouping: {
units: groupingUnits
},
tooltip: {
valueDecimals: 3
},
threshold: null
},{
type: 'column',
name: 'Volume',
data: volume,
yAxis: 1,
dataGrouping: {
units: groupingUnits
}
}]
我正在尝试使用包含日期和关闭值的区域数组更改数据,但它也不起作用。