Releases: dbuezas/lovelace-plotly-graph-card
Releases · dbuezas/lovelace-plotly-graph-card
Fix legend spacing when using show_value: true
v1.2.1 1.2.1
Custom Color Schemes support
- Custom Color Schemes support
color_scheme: ['blue', 'red']
- Don't override trace's
legendgroup
when usingshow_value: true
- Set layout
layout: { legend: { traceorder: "normal" } }
so that the legends don't get more spaced when usingshow_value: true
Fix Safari
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
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
- Disables tooltips on "fake" invisible traces created by
show_value: { right_margin: 10 }
Fixed default axes
default yaxes are now merged with specific layout/yaxis[n]
Beta version
- Add right margin when showing last trace value inside plot
First stable release!
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
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),
})