Replies: 3 comments 2 replies
-
Hi, you need timestamp in milliseconds: const dateStr = "2024-10-31T15:30:00"; |
Beta Was this translation helpful? Give feedback.
-
im maybe out in the woods here, but if no options for date format is send to uplot, maybe uplot triggers the rawValue in checkDateFormat() in ngx-uplot.component.ts. if that the case it will be a good feature to have the option to chose in Chart settings menu under date format. a option to convert timestamps to dates/times or treat x values as plain numbers for custom charts. |
Beta Was this translation helpful? Give feedback.
-
in file ngx-uplot.component.ts where init(options?: ChartOptions, rawData?: boolean) we needed options from chart setting to enable/disable rawData or view as plain number. in chart-uplot.component.ts where public setCustomValues(lines) we cant convert millis to seconds if we want to use i have made a simple hack for those who really need to send coustom chart with timestamps for now.
and then rebuild |
Beta Was this translation helpful? Give feedback.
-
i have tried to send coustom data to line chart, but have trouble to get time series axis to work,
when paramLines return x axis in unix-time (seconds) it plots the data but need some conversion to human readable format, i have tried to send timestamps in string format etc (2024/10/10-17:50) but it dont works.
what is the correct time format to send ?
working example of paramLines returning values, but need some human readable conversion:
Beta Was this translation helpful? Give feedback.
All reactions