Skip to content

Trendline for scatter plots #471

Open
@Heronimonimo

Description

@Heronimonimo

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions