Amchart:如何选择周期范围?

Amchart: How the period range is selected?

我对指定时间段时如何选择最后日期感到有点困惑。

this示例中,当我们选择1 month时,结束日期是27-07-2018,但是当我们选择1 year时,结束日期是30-07-2018

(今天是27-07-2018

1 year 的情况下,我失去了三天,因为周期的开始变成 30-07-2017 而不是 27-07-2017

我没有在文档中找到为 periods

指定开始或结束日期的方法

比你提前

您可能 运行 了解股票图表如何 data grouping is working with your data. By default, AmCharts groups your data into periods for performance, which can sometimes affect your period selector ranges. You can fix the period selector range output by setting extendToFullPeriod 在您的股票图表对象的顶层出错。

AmCharts.makeChart("...", {
  // ...
  extendToFullPeriod: false,
  // ...
})