Chart v3.0.0: Time Cartesian Axis - w/o Date Adapters ???
See original GitHub issueFeature Proposal
I am looking for a way to use Time Cartesian Axis without a date adapter, because I have not found a way in the Home Assistant framework how I can use locale files for the adapter. Also I have my concerns, just to display the date / time in the user language, to use the date libs (moment, luxon, date-fn) for it.
I have different data sources that don’t always have data for every time interval. It is possible to create a timeseries for Category Cartesian Axis for all data, but then my performance is poor, since many data always have 0 values.
Most likely I could use the chartjs-adapter-date-fns, but I can display the date and time in the user language.
What is my option?
The dataset contains the following data:
X-Axis: Date Y-Axis: Value
[
{
"x": 1617253200000,
"y": 0.117,
},
{
"x": 1617256800000,
"y": 0.249,
},
{
"x": 1617260400000,
"y": 2.068,
},
....
Feature Use Case
Time axis Ticks label (x)
formatted and Tooltips date / time
in the user language.
Possible Implementation
???
Issue Analytics
- State:
- Created 2 years ago
- Comments:28 (13 by maintainers)
Top GitHub Comments
Thanks, works now.
@kurkle
timeseries the grid columns are too big at the beginning and at the end or am I making a mistake?