如何改变初始值Chart.js-RangeSlider? [解决了]

How to change the initial value Chart.js-RangeSlider? [Solved]

Chart.js-RangeSlider 不从给定的 initial 值开始 (1901, 1910) 并显示图表:

我正在搜索的是更改 initial 值,并得到下图:


[..snip..]

rsLluviaHistorica = new RangeSliderChart({
  chartData: iniDataLluviaHistorica,
  chartOpts: optionsLluviaHistorica,
  chartType: 'line',
  chartCTX: iniLluviaHistorica,
  //class: 'my-chart-ranger',
  initial: [1901, 1910]        
})

//this doesnt work
rsLluviaHistorica.options.initial = [1901, 1910]

代码:https://jsfiddle.net/sckull/hy0p75cq/14/

已解决

initial 值必须在数据长度范围内(在我的例子中是 0 到 112):

rsLluviaHistorica = new RangeSliderChart({
  chartData: iniDataLluviaHistorica,
  chartOpts: optionsLluviaHistorica,
  chartType: 'line',
  chartCTX: iniLluviaHistorica,

  //range of 0 - 112
  initial: [0, 10]        
})

已解决:https://jsfiddle.net/sckull/hy0p75cq/16/