Add trend lines for cartesian charts
Description
I want to be add trend lines to my cartesian charts. Specifically a linear regression across a set of values that have a numeric y-axis.
What problem does this solve?
Sometimes, you want to be able to quickly add trend lines to your charts
Acceptance criteria
-
[ ] if I have a continuous numeric value on the y-axis and a cartesian chart type selected, then I can add a linear regression.
-
[ ] There is an option in
displaywhich is calledTrend lines. (Exactly like reference lines). You can click+ Addto add a new trend line -
[ ] The trend line setting are exactly as the reference line settings, except there's no
valueoption -
[ ] There are no other options except for "line of best fit". (eventually we can add other line types to fit)
-
[ ] There's an info box on hover on the trend line in the config box that says "This is calculated as a line of best fit"
This has just been requested by a prospect
Is this issue still relevant? There have been no updates for 60 days, please close the issue or keep the conversation going!
Comment about echarts:
explore: which chart types can get trendlines?
example of bar trends in ECharts: https://echarts.apache.org/examples/en/editor.html?c=custom-bar-trend