Open krishnamurthy12 opened 5 years ago
Can we have Zoombutton feature in candle chart
@kishantaretiya Do you mean in AnyChart.stock() chart or AnyChart.cartesian() with candlestick series? The stock chart provides a scroller with zooming as out-of-the-box. Here is the sample of a Stock chart.
@Shestac92 thanks for response but i mean zooming button only not scroller
@kishantaretiya
It's possible too! You can create in UI buttons and in listeners call AnyChart API to manage chart settings.
For example, for the Stock chart, you can call selectRange()
method from the chart instance to apply a new visible range. You can calculate the new range from the current range and desired logic. To know the current range use getMaximum()
and getMinimum()
methods of the chart xScale.
thanku sir
can we hide the icon of collapse/expand plot in chart
@krishnamurthy12 Unfortunately, it's not possible to disable the plot controls in the current version of the library.
@krishnamurthy12 Yes, you can add xScroller to the basic charts. Here is the sample code: