Home Forums StockChart Support StockChart Time Series Toggle Reply To: StockChart Time Series Toggle

#60035

@fitted_sheet,

You can easily load the data from your API endpoint on the click of the button and display loader while requesting data to smoothen the experience. You could also store the data in local variable so that you don’t request same data repeatedly on clicking of button. Please take a look at this JSFiddle for an example on loading daily, weekly, and monthly on click of bootstrap buttons.

Loading weekly, monthly data on clicking bootstrap button in StockChart

—-
Manoj Mohan
Team CanvasJS