Skip to content

add trendlines in Plotly.js #4921

Open
Open
@juliangommers

Description

@juliangommers

Looking through the documentation of Plotly I came across the trend line possibilities in Plotly.py: https://plotly.com/python/linear-fits/
I'm searching for a feature within Plotly.js to draw a trend line/regression line/fitting within a scattered graph. Though it looks like this feature is not available in the JavaScript version of Plotly.

The requests for such a feature have already been there within the community for some time but the answer was to generate it elsewhere. I am using Plotly within Mendix and using other libraries to create something for Plotly is not really a well maintainable solution there.
https://community.plotly.com/t/fitting-function-with-plotly-js/1851
https://community.plotly.com/t/linear-regression-in-scatterplot/8669

Would it be a possibility to add trend lines as a feature within Plotly.js?
Something like this would be great as an example:
https://developers.google.com/chart/interactive/docs/gallery/trendlines

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions