-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date Axis group data property #1627
Comments
It uses the value of the last data item in the group by default. You can change it: https://www.amcharts.com/docs/v5/charts/xy-chart/axes/date-axis/#aggregation-function |
@martynasma even after using aggregation function. The datetime in the group is of the last data item . is it possible to show the datetime of the first or aggregated value in case of max min . |
Yes, the time is of the last grouped value. axis tooltip will show correct date: If you need correct date to be shown in tooltip, you will need to create adapter for labelText of a tooltip. This adapter should check what is current base interval and round or format date in a way you want, something like:
By the way you have some incorrect setup - baseInterval should be minute, not hour: |
the solution seems to work only for the series 0 and series 2 stills shows the same
and how to get the timestamp of the first record to show up |
Did you add the same tooltip and adapter for the second series? It should be a different instance of a tooltip. |
This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added. |
I am working on DateAxis and I have a huge data set to render in the chart. So I tried to group data it renders fewer records but it seems to render the last record in the group. Is it by design or I can change it to show other records as well like the first one in the group?
codepen for reference: https://codepen.io/ErPratham/pen/oNrzvGB
The text was updated successfully, but these errors were encountered: