Description
Is your feature request related to a problem? Please describe.
Currently, the chart library does not support timestamps with millisecond precision when provided in UTC ISO format such as "2025-05-06T20:50:35.018Z". This becomes a limitation when visualizing tick-by-tick financial data or real-time streaming data, where such granularity is essential for analysis and accuracy.
Attempts to convert these timestamps using new Date().getTime() or similar approaches result in inconsistent behavior or incorrect chart rendering.
Describe the solution you’d like
I would like to request native support for datetime strings in UTC ISO 8601 format that include milliseconds (e.g., "2025-05-06T20:50:35.018Z"), or at least improved handling for numerical timestamps with millisecond precision (Date.getTime() output). Ideally, the library should allow direct consumption of such values and reflect them accurately on the time scale.>
Additional context
This feature would greatly enhance the chart's applicability in high-frequency trading systems and real-time dashboards, where millisecond-level updates are common.
A robust implementation could also include customizable formatting for the time scale when milliseconds are visible, without compromising performance or clarity.
Let me know if a PR would be welcome in this area, and I’d be glad to contribute.
Activity
SlicedSilver commentedon May 10, 2025
The library already supports this. You would need to use timestamps (number) for the
time
field in the data points, and then use a custom formatter to display the additional milliseconds.Here is an example:
Code preview: https://glitch.com/edit/#!/spectacular-unexpected-tsunami