Highcharts 未来几天的高库存范围选择器
我有几个范围选择器Highcharts 未来几天的高库存范围选择器,highcharts,highstock,Highcharts,Highstock,我有几个范围选择器 rangeSelector : { buttons: [{ type: 'month', count: 1, text: '1M' }, { type: 'month', count: 6, text: '6M' }
rangeSelector : {
buttons: [{
type: 'month',
count: 1,
text: '1M'
}, {
type: 'month',
count: 6,
text: '6M'
}, {
type: 'ytd',
text: 'YTD'
}, {
type: 'year',
count: 1,
text: '1y'
}, {
type: 'year',
count: 5,
text: '5y'
}],
selected : 3 // year
},
范围的计算方式如下:今天-rangeSelector。
在我的图表中,我有未来的系列值,例如2014年6月20日。是否有可能从2014年6月20日到2013年6月20日,而不是从2014年5月13日(今天)到2014年5月13日,获得1年的期限
编辑:是否可以向范围选择器添加值?e、 g
{
type: 'month',
count: 6, //I would like to add +60days here
text: '6M'
}
关于第一期,对我来说效果很好,请参见: 第二个问题,如果你想增加60天,而不是仅仅增加3个月,像这样:
{
type: 'month',
count: 9,
text: '6M'
}
但是我很确定这不是你想要的