I am using the LightningChart JS (trial version) in my Angular 17 application. I am trying to plot a linear-highPrecision multi-channel real time data in microseconds & nanoseconds using WebSockets. I am using a line chart and in it I am using time tick strategy.
The issue that I am facing is that when I plot microsecond data, the format of the ticks labels and tooltip shows information of X axis in milliseconds instead of showing in microseconds. It also shows the hours part in a weird format e.g. 441186.59.59.108
. The same goes for the nanosecond data. It is shown in the attachment below.
My Current Result
The JSON I receive from the API is like this
[
{
"X": "2020-04-30T23:59:58.500001",
"Y": 295
},
{
"X": "2020-04-30T23:59:58.500002",
"Y": 293
},
{
"X": "2020-04-30T23:59:58.500003",
"Y": 294
},
{
"X": "2020-04-30T23:59:58.500004",
"Y": 294
}
]
I have almost 50K data points for microsecond and 10M data points for nanosecond channels.
My expected result is that when I plot microsecond data then ticks and tooltip should show data in microsecond e.g. 23:59:58.500001
and for nanosecond it should show 23:59:58.500000001
.
1