deephaven / deephaven-plugins

Deephaven Plugins
11 stars 14 forks source link

`dx.timeline` gets jumpy when using `by` #665

Open alexpeters1208 opened 2 months ago

alexpeters1208 commented 2 months ago

Need 0.35.0 or higher to repro this one.

The y axis and legend of the timeline plot jumps around a ton when using by, leading to an unusable plot.

import deephaven.plot.express as dx
jobs = dx.data.jobs() # import the ticking jobs dataset

# the `by` argument is used to color the bars by another categorical variable
jobs_resource_tracking = dx.timeline(jobs, x_start="StartTime", x_end="EndTime", y="Job", by="Resource")

https://github.com/user-attachments/assets/6531ad43-b9fe-45ef-a990-7264d0048452

vbabich commented 2 months ago

Would sorting the ticking data fix the issue?