Replies: 5 comments 2 replies
-
@skwasha if you want to see the gap during uncovered timeframe, you could:
Here is a codepen: https://codepen.io/stockinail/pen/NWMxpmE |
Beta Was this translation helpful? Give feedback.
-
@skwasha Ok, in this way the quick way is do NOT use In teh codepen, the ticks.callback is "parsing" the string value checking the index of space and semicolon. But, if you want to include in your application the date library (i.e. luxon) you could leverage on datetime library to parse and return the right tick. |
Beta Was this translation helpful? Give feedback.
-
AFAIK time scale generates anyway the time even if no data are there. see my first codepen, where time scale is used: https://codepen.io/stockinail/pen/NWMxpmE But you can use a linear scale for line chart. You need to transform the date in millis and add ticks.callback to format the ticks and stepSize to have 1 hour as gap between ticks. |
Beta Was this translation helpful? Give feedback.
-
I also need to have a |
Beta Was this translation helpful? Give feedback.
-
I had a thought on this, though I have yet to actually try it... Would it be possible to split my data by day and then |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a bunch or order data. It is not evenly spaced (time-wise). There might be 10 orders between 9:00 and 10:00, and 5 between 10:00 and 11:00, and so on. There will never be orders between 17:00 and 9:00.
I'd like to be able to chart this with a cartesian time x axis (i.e., equidistant time ticks regardless of the # of data points). But I also want to skip the closed hours. Is this possible? Apologies if this is trivial and I'm just missing something in the docs.
I've tried "timeseries" but because of the inconsistency of the order times, this isn't ideal either.
TIA
Beta Was this translation helpful? Give feedback.
All reactions