amcharts3
amcharts3 copied to clipboard
Period Selector
Hi Team,
If I click on period selector button of period 5 Mins, It is showing recent 5 Min Data.
But What i want is to show last a day data with 5 min time difference.
Is it possible?
Thanks in advance.
New comment from Zendesk by Christine Stone on ticket 38164. (replying here will automatically notify amCharts support agent)
Hi,
The period selector changes the grouping of the data set depending on what range was selected.
If you want to keep the same range of data selected but to change the resolution of the data, you would need to switch out the data set for a different one.
For example if your current data for the day is hourly, you would need to switch out the entire data set to one that is in 5 minute increments. That way the entire chart will have data in 5 minute increments.
There is an example here that is switching out data sets based on the zoom of the chart: https://www.amcharts.com/kbase/change-the-data-set-dynamically-based-on-zoom-on-stock-chart/
You could use this same idea to switch out the data set based on an external button if you wanted the same sort of UI as the period selector.
Hopefully this helps, let me know if you have any questions.
Yours sincerely,
Chris Stone
amCharts