Setting the start range for AMCharts ScrollBar

I executed a sequential diagram using AMCharts , but has more columns than can be realistically shown in the window. To reduce the amount ChartsScrollBar , I added a ChartsScrollBar , which does the trick, but initially it selects all the data. Does anyone know how to set the initial scroll bar scaling?

I wrote JSFiddle to explain the problem - http://jsfiddle.net/Wd3GM/

I am trying to get a โ€œscale barโ€ to show less than four items at startup.

+4
source share
1 answer

You must listen to the init event and then use one of the available scaling methods. Here's the fiddle changed: http://jsfiddle.net/Wd3GM/1/

+5
source

Source: https://habr.com/ru/post/1436157/


All Articles