XChart
XChart copied to clipboard
Adding trendlines to bar and XY charts
Hello,
Thanks for the great library, it's very useful!
One thing I've been scratching around for, but haven't seemed to find, is the ability to add a trendline through the graph that you render. Is this something you'd plan to add in? I'd find it very useful for showing trends on both line and bar charts.
Not quite what I was getting at; consider something like the trendline feature in MS Excel / other alternatives are available.
I would imagine it might be a method call on say a Series or a ChartStyler to add a trendline / line of best fit on top of the provided data.
Add a series, draw line and bar?
No, XChart doesn't have that yet. You'd need to generate the trendline yourself and add a series. I'll leave this open as a feature request.