Highchart/stockChart:使用按钮放大月度数据并显示受影响的列

问题描述

我在 highchart 中有一个简单的时间序列:

series: [{    
"data": [[Date.UTC(2021,1),22312],// January 
[Date.UTC(2021,1,12312],// Feburary
[Date.UTC(2021,2,23322],// ... etc.
],

现在我想放大一个月,只显​​示一列带有给定代码的列:

rangeSelector: {
      buttons: [{
        text: '1m',type: 'month',count: 1,// This should show only 1 month,but it shows 2.
        // If this is changed to "0",one month will be show,but 
       // The css "highcharts-button-pressed" is disabled,and you cannot
       // see that "1m" was clicked. 
},

根据文档“rangeSelector.buttons.count”应该跨越一个月的区域,如果类型是“月”并且计数是“1”。但我在这里得到的是两个多月的时间。

这是一个例子: https://jsfiddle.net/ds90vf5r/1/

问题 1:为什么在选择/单击仅 1 个月 (1m) 时,higchart 会显示两列而不是一列?
问题 2:如何放大当前日期并仅显示一只蛾(或一列)?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)