Skip to content

Ghost traces when data has single non-unavailable states sandwiched between unavailable ones #103

@dbuezas

Description

@dbuezas

Although it is a plotly.js bug (not this card's) it can be fixed by creating fake duplicates or simply removing the rogue points

To reproduce:

type: custom:plotly-graph-dev
entities:
  - entity: sensor.nothin
    lambda: |-
      () => ({
        x:[-60, -50, -40, -30, -20, -10, 0].map(x => new Date(Date.now()+x*1000*60)),
        y:[0, 1, null, 3, null, 4, 5],
      })
hours_to_show: 1

in time-offsets branch
update: it was in master too

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions