Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird artifacts or clipping when combining autorange_after_scroll with negative time_offset #532

Open
dcbr opened this issue Feb 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dcbr
Copy link
Contributor

dcbr commented Feb 5, 2025

Describe the bug
When setting autorange_after_scroll: true, the line of a shifted entity (negative time_offset) shows weird artifacts or gets clipped (when a resample filter is applied) after scrolling back in time.

Screenshots
Initial plot

Image

After scrolling back (without resample filter): weird glitches at the end

Image

After scrolling back (with resample filter): clipped line at the end, even though this data should be available

Image

After scrolling back (without autorange_after_scroll): normal, expected behaviour

Image

yaml

type: custom:plotly-graph
entities:
  - entity: sensor.p1_meter_power
    name: Power
    filters:
      - resample: 5s
  - entity: sensor.elec_mean_quarter_power
    name: Average
    filters:
      - resample: 5s  # Remove to observe 'glitchy' behaviour instead of 'clipping' behaviour
    time_offset: "-450s"
hours_to_show: 1
autorange_after_scroll: true  # Set to false to observe 'normal' behaviour
layout:
  yaxis:
    fixedrange: true
@dcbr dcbr added the bug Something isn't working label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant