Chart with Class Point

Hi,

I would try to build a chart with the classe Point.
I have an observable collection of class Point and i would build a chart type of Scatter. I assign the Data source --> Binding to my Collection. and BindingPathX --> is X and BindingPathsY --> is Y. But it doesn't make nothing what's wrong?

HorizontalAlignment="Left"
Margin="6,0,0,0"
Name="chart1"
VerticalAlignment="Top"
Width="781" Height="333">

IsContextMenuEnabled="True"
Header="My First Chart Control">


Header="Secondary Axis" />

Header="Primary Axis" />

Label="FirstSeries" DataSource="{Binding Path=OutputsModelInstance.Start.Value.StatisticsOutput.CalculateStatistics.NormalDistributionPoints}" BindingPathX="X" BindingPathsY="Y" Type="Scatter">




Do you have an exemple or something thaht can help me !?

best regards,


Julie



1 Reply

KK Krishna Kumar Syncfusion Team February 9, 2011 06:26 AM UTC

Hi Julie,
We have created a sample based on your requirements. In our sample we used “ChartPoint” in build Syncfusion class. But you are using Microsoft “Point”, Microsoft “Point” is not a class it is structure. The variables inside the structure are like a field and it is not a property. We can bind only properties in the chart so only the chart dint displayed.

Please download the sample from the below link location.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=ScatterChart351096526.zip

Let me know if you have any queries.

Thanks,
Krishnakumar



Loader.
Up arrow icon