anychart - How to change slider range on chart load -


i working on anychart investment portfolio dashboard anychart investment portfolio dashboard .
enter image description here how can minimize date range of slider 1 month only(on chart load) , should resizable.

use selectrange method:

you can specify given dates: http://playground.anychart.com/api/7.12.0/charts/anychart.charts.stock.selectrange-plain

specify interval start or end using anchors:

http://playground.anychart.com/api/7.12.0/charts/anychart.charts.stock.selectrange_set_asunit-plain

or use preset range types:

http://playground.anychart.com/api/7.12.0/charts/anychart.charts.stock.selectrange_set_as_type-plain

easy sample showing "one month only":

chart.selectrange("mtd"); 

is here: http://jsfiddle.net/97kc1jpw/

as sample itself, decided idea upgrade it, use latest version , add option describe right in it, along new nice range selector, please pull latest changes https://github.com/anychart-solutions/investment-portfolio-dashboard

you interested in particular line: line 313 in dashboard.js


Comments

Popular posts from this blog

How to get the arclen between two curve points in Maya? -

C++ Linked List -

git svn - Unignore directories in git-svn (adding directories to a sparse checkout) -