I don't understand why the rangeSelector
does not appear when I use HighStock with async loading. Here is an example code: http://jsfiddle.net/8y85e0ux/
rangeSelector is activated:
rangeSelector:{
enabled:true
},
Use your setData function in chart callback.
$('#container').highcharts({
chart: {
type: 'line' },
title: {
text: 'Monthly Average Temperature'
},
rangeSelector:{
enabled:true
},
xAxis : [{
type: 'datetime'
}],
series: [{
name: 'Tokyo',
data: []
}]
},function(chart){
setData();
});
Example: http://jsfiddle.net/8y85e0ux/3/
Instead of:
$('#container').highcharts({
Use:
$('#container').highcharts('StockChart', {
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.