traccar / traccar-web

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
786 stars 1.09k forks source link

Chart Report - Allow multiple X Axis for different time indexes #1247

Closed geelongmicrosoldering closed 1 week ago

geelongmicrosoldering commented 1 week ago

I noticed an issue displaying some data in Chart Reports. For devices that periodically disable GPS, 'fixTime' can be the same across multiple updates, while other data changes.

So displaying 'Battery Level' over time for example, results in stacked ticks, because 'fixTime' is used for the X axis: image

This is probably ideal behavior for some data, but not for others. Proposed solution is allowing user to choose which time to use by adding an extra select filter on chart reports: image

I'm not convinced its the best approach, but its the simplest I could think of.

Criticism is welcome 😄

tananaev commented 1 week ago

Thank you.