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

Understanding WPF Chart Binding: BindingPathY is array of Strings

Hi ,

Would you please help me to understanding syncfusion chart bindings.

As per documentation BindingPathY is array of strings and BindingPathX is string word which is string type.

Why BindingPathY is array of strings?  Can you please help me to understand with sample project. 

chart1.Areas[0].Series[0].BindingPathsY = new string[] { "Sales" };

Thankyou,
~SN

1 Reply

MK Muneesh Kumar G Syncfusion Team September 16, 2013 07:02 AM UTC

Hi Sri,

 

Thanks for using Syncfusion products,

 

We would like to inform you that  some kind of chart types  need more than one BindingPathsY values. For example HiLo chart type requires two BindingPathsY values for start and end points, HiLoOpenClose chart type requires four BindingPathsY values for high, low, open, close points. So that BindingPathsY is defined as a String array property. Please find the below code snippet for BindingPathsY usage.

 

Code Snippet[C#]:

 

public MainWindow()

{

InitializeComponent();

series.BindingPathsY = new string[] { "High", "Low", "Open", "Close" };

}

 

We have prepared a sample based on this and you can find the sample under the following location:

Please let us know if you have any queries,

 

Regards,

Muneesh Kumar G.



Samples_For_BindingPathsY_47b61177.zip

Loader.
Live Chat Icon For mobile
Up arrow icon