hdonati-CFU commented on issue #5981:
URL: https://github.com/apache/echarts/issues/5981#issuecomment-2278398594

   any updates? Having the same issue now. I need the axis to be of type time 
because the data I'm displaying is coming from an API and is not always evenly 
spaced (e.g. it can be 1 hour apart for multiple datapoints then suddenly 3 
days apart). 
   
   Switching the xAxis to category, when the axis should be time, only works if 
the time difference between each datapoint is evenly spaced. 
   
   Using offset and barMaxWidth works for some times, but not others 
(particularly when there's little data to display).
   
   It'd be awesome if the outside of the chart could be on a different zLevel, 
for example, so that the bars would just be hidden underneath it when it 
overflows. I'm thinking of dealing with it by passing the data to the xAxis 
(e.g. ["2022-01-01T00:00:00.000Z", "2022-01-01T01:00:00.000Z", 
"2022-01-01T02:00:00.000Z", ...]) so that the "type:category" works, if there 
are no updates.
   
   Here's what I'm working on for reference:
   
![image](https://github.com/user-attachments/assets/3afea54d-beb9-492a-a265-a103591a926e)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to