We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I display a polynomial on a graph?

Thread ID:





141517 Dec 14,2018 04:41 PM UTC Dec 17,2018 10:30 AM UTC WPF 3
Tags: SfChart
Alfie Douglas
Asked On December 14, 2018 04:41 PM UTC

Is there anyway I can display a polynomial on an SfChart?

Muneesh Kumar G [Syncfusion]
Replied On December 17, 2018 05:20 AM UTC

Hi Alfie, 
Greetings, we have analyzed your requirement and you can achieve this by using Trendlines for series as per the below code snippet. 
Code snippet 
<syncfusion:FastLineSeries XBindingPath="Date" 
YBindingPath="Value"  Interior="#7F7F7F" ItemsSource="{Binding StockPriceDetails}"> 
<syncfusion:Trendline Stroke="Black" Type="Polynomial"/> 
Please refer below user documentation for more details about trendlines and its Polynomial type.  
Please let us know if you have any queries.  
Muneesh Kumar G. 

Alfie Douglas
Replied On December 17, 2018 09:21 AM UTC

Is there anyway I can plot a polynomial without having the original data?

Muneesh Kumar G [Syncfusion]
Replied On December 17, 2018 10:30 AM UTC

Hi Alfie, 
We have analyzed your requirement and we suspect that your requirement is to see only polynomial line in SfChart. You can achieve this by setting series’s Interior as Transparent as per the below code snippet.  
Code snippet 
<chart:FastLineBitmapSeries XBindingPath="XValue" YBindingPath="YValue" 
                                    Interior="Transparent"   ItemsSource="{Binding Data}"> 
                    <chart:Trendline Type="Polynomial"/> 
If your requirement different from this, please give more information (pictorial representation) about your requirement that would be helpful for us to give better solution in this.  
Muneesh Kumar G. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon