AM Charts initial view using zoomToDates
问题 Been stumped on this for a little bit. I found some other help on zoomToIndexes, but I cant get the zoomToDates to work on my page. Live page is b2 resource urq sales Im trying to set the initial view to show from 2000 to current.. I want to slap some original sales data from early 80's in the graph, but dont want the graph to initially show the last 30+ years.. Any help would be MUCH appreciated! 回答1: zoomToDates takes real JavaScript Date objects as parameters: chart.zoomToDates(new Date