Skip to content

Releases: dbuezas/lovelace-plotly-graph-card

Custom Color Schemes support

03 Mar 14:25
Compare
Choose a tag to compare
  • Custom Color Schemes support color_scheme: ['blue', 'red']
  • Don't override trace's legendgroup when using show_value: true
  • Set layout layout: { legend: { traceorder: "normal" } } so that the legends don't get more spaced when using show_value: true

Fix Safari

03 Mar 13:52
Compare
Choose a tag to compare

Safari can't parse string dates as Chrome.
This release fixes navigation in Safari by parsing via date-fns/parseISO

Fixed error plotting attributes.

Fix yaxis range when using show_value

15 Jan 17:14
Compare
Choose a tag to compare

Fixes wrong yaxis range when using multiple axes and show_value. the invisible markers were all put in the same yaxis

Fix: disable hover tooltips on hidden traces

13 Jan 17:27
Compare
Choose a tag to compare
  • Disables tooltips on "fake" invisible traces created by show_value: { right_margin: 10 }

Fixed default axes

12 Jan 17:16
Compare
Choose a tag to compare

default yaxes are now merged with specific layout/yaxis[n]

Beta version

11 Jan 19:00
Compare
Choose a tag to compare
Beta version Pre-release
Pre-release
  • Add right margin when showing last trace value inside plot

First stable release!

09 Jan 13:42
Compare
Choose a tag to compare

New:

  • show value for entities (show_value: true)
  • defaults for entities and all yaxis
  • 24 color schemes

Breaking changes

default_trace:
  {my_default_config_for_entities}

is replaced by

defaults:
  entity:
    {my_default_config_for_entities}

Added option to return X and Y arrays from lambdas

03 Jan 17:02
Compare
Choose a tag to compare

E.g:

- entity: climate.wintergarten_floor
  unit_of_measurement: °C
  lambda: |-
    (ys, xs, entity) => ({
      x: xs.map(x => -x),
      y: ys.map(y => y / 2),
    })

Update plotly.js version to 2.8.3

03 Jan 16:55
Compare
Choose a tag to compare

Fixes jumpy tooltips in desktop.
May fix missing tooltips on mobile.