You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like Scatter fillgradient defaults to fillcolor when used in home assistant, could support for this be added in a future release or am I missing something? It would be great to use colorscale in the fillgradient.
How would it be defined in yaml?
type: custom:plotly-graph
entities:
- entity: ''
y: 1
x: $ex [new Date(Date.now()).setHours(-24), new Date(Date.now()).setHours(-23), new Date(Date.now()).setHours(24)]
fill: tozeroy
fillgradient:
colorscale:
- 0, red
- 1, blue
start: 0
stop: 1
type: vertical
hours_to_show: 24
Scribble
Currently looks like this,
Should like more like this
I didn't know about fill gradients.
I suggest you try using this in plain plotlyjs, I don't think this card changes anything about it.
You can start with this codepen: https://codepen.io/chris3edwards3/pen/BaNxxwY and test it in the browser
Describe the solution you'd like
Scatter fillgradient defaults to fillcolor when used in home assistant, could support for this be added in a future release or am I missing something? It would be great to use colorscale in the fillgradient.
How would it be defined in yaml?
Scribble
Currently looks like this,
Should like more like this
Additional context
https://plotly.com/python/reference/scatter/#scatter-fillgradient
Colorscales detailed here: https://plotly.com/python/colorscales/
The text was updated successfully, but these errors were encountered: