最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Setting the initial range for AMCharts ScrollBar - Stack Overflow

programmeradmin3浏览0评论

I have implemented a serial chart using AMCharts but have more columns than can be realistically shown in a window. To reduce the amount drawn, I have added a ChartsScrollBar which does the trick, but initially it selects all the data. Does anyone know how to set the initial zoom for the scroll bar?

I've written a JSFiddle to explain the problem - /

I'm trying to get the 'zoom bar' to show less than four item on startup.

I have implemented a serial chart using AMCharts but have more columns than can be realistically shown in a window. To reduce the amount drawn, I have added a ChartsScrollBar which does the trick, but initially it selects all the data. Does anyone know how to set the initial zoom for the scroll bar?

I've written a JSFiddle to explain the problem - http://jsfiddle/Wd3GM/

I'm trying to get the 'zoom bar' to show less than four item on startup.

Share Improve this question asked Sep 25, 2012 at 13:22 tonycouplandtonycoupland 4,2471 gold badge29 silver badges27 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

You should listen fot "init" event and then use one of the available zoom methods. Here is modified fiddle: http://jsfiddle/Wd3GM/1/

发布评论

评论列表(0)

  1. 暂无评论