Open
Description
First off, what a great card. I'm really having a lot of fun making new visualizations of my data.
Describe the solution you'd like
I want to add a trendline to my scatter plots.
How would it be defined in yaml?
- entity: ""
x: $fn ({ vars }) => vars.temperature
"y": $fn ({ vars }) => vars.heat
filters:
- trendline:
type: linear
show_formula: true
show_r2: true
type: scatter
Scribble
Examples of how this could look like in Plotly can be found here: https://plotly.com/python/linear-fits/