|119218||May 24,2015 05:43 PM UTC||May 26,2015 01:33 PM UTC||WPF||3|
Thanks for contacting Syncfusion support
Query1: (display trendline equation)
Currently we don’t have support for display trendline equation in chart area. However, we have considered “Implement trendline equation like excel chart” as a new feature request and will be implementing in any of our upcoming release.
Also, in the mean while we are working for any workaround possibilities to achieve this.
Query2: (get slope, intercept values of trendline)
We could extract the slope, intercept value of trendline as shown in the below code snippet
Code Snippet [C#]:
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
var slope = (series1.Trendlines as Trendline).Slope;
var intercept = (series1.Trendlines as Trendline).Intercept;
Please let us know in case of any query
Query 1: Is there a way in the control to force the trend line to start at (0,0)?
Currently we don’t have support for editing intercept of trendline. However, we have considered the “Support for editing intercept of trendline” as a new feature and will be implementing in any of our upcoming release.
Query 2: What's the best way to go about plotting a line?
Yes, you can achieve the custom intercept requirement by plotting a line series using the trendline equation.
1. Generate the data points using the TrendLine Equation, by substituting the x values of Scatter Series (existing series).
2. And add (0,0) or any other point to the starting of your point collection and bind this collection to your line series.
Displaying trendline equation:
As a workaround, we have used text annotations to display trendline equation. We have prepared a sample based on this, please download from below location.
Please let us know in case of any query.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
or the page will be automatically redirected to sign-in page in 10 seconds.