You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ValueFormatter getFormattedValue needs also function with Double #197
Also would be nice if we can map formatter with Entry data where we can pass multiple info regarding the Entry.
This is needed when we want to add Unix timestamp to X axis. if we do add it now and convert to float, precision is lost, and line is going everywhere but not where it supposed to go.
@Paget96
I currently add a time chart #720 one value per second and values are looking not that bad. Even millis are somehow precise.
The SimpleTimeFormat is "HH:mm:ss.sss" of a unix timestamp
It looks linear when I add it in a loop (for each second one value).
Ok, you can ask why i t needs 13 ms by adding 14 values. One value = 1 ms.
I currently don't loose precision.
Please tell me where is the issue ? (Otherwise I close this)
Activity
hannesa2 commentedon May 12, 2024
Isn't it enough to simple convert double to a float ?
https://github.com/AppDevNext/AndroidChart/pull/223/files
hannesa2 commentedon Dec 30, 2025
I made at least a test to demonstrate the issue #630
hannesa2 commentedon Dec 30, 2025
I guess for Unix timestamp a
Longwould be the best solution, am I right ?hannesa2 commentedon Dec 30, 2025
Does this #631 solve your issue ?
Without thinking much about it, I simply used an overlapping method with
Long.hannesa2 commentedon Dec 30, 2025
I made #633 to have unix timestamp linechart. Please demonstrate there your
Btw, #631 is the wrong solution (as far as I understand it currently)
Paget96 commentedon Jan 17, 2026
I will test these. Long for timestamp is ok, problem is chart precision, but I will test and report back.
Thank you!
hannesa2 commentedon Feb 11, 2026
@Paget96
I currently add a time chart #720 one value per second and values are looking not that bad. Even millis are somehow precise.
The SimpleTimeFormat is
"HH:mm:ss.sss"of a unix timestampIt looks linear when I add it in a loop (for each second one value).
Ok, you can ask why i t needs 13 ms by adding 14 values. One value = 1 ms.
I currently don't loose precision.
Please tell me where is the issue ? (Otherwise I close this)
hannesa2 commentedon Feb 11, 2026
But I see when you calculate later with values, eg. time difference to next Entry it's somehow non-precise.
Please see "duration"
hannesa2 commentedon Mar 31, 2026
#752 solves it now. Please reopen, if it still exist.
I'll create a new version with it