Skip to content

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

@dcbr

Description

@dcbr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions