hy,please give me a example how to use XamWebChart if it has any detailed example or video please paste the link?
Hi, itskashif,
I've noticed you are using the XamChart control instead of the XamWebChart. There are some difference between the two controls, for instance the XamChart is WPF specific, while XamWebChart is Silverlight specific. If you are looking for help with the XamChart, please visit https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/tags/XamChart%20(Retired) since I'm not that familiar with the XamChart control.
In case you want to use the XamWebChart, please reference InfragisticsSL4.Controls.Charts.XamWebChart.v11.1 (v10.2 or v10.3 depending on which version you are using). Add :
xmlns:igCA="">schemas.infragistics.com/xamWebChart" to your XAML and
using Infragistics.Silverlight.Chart; to your .cs file.
Also change your XAML from igCA:XamChart to igCA:XamWebChart. Once this is done, you should be able to bind your data using the code you provided here.
Regards,Boyan
hi, Boyan
Thanks for reply. Actually i saw the basic chart
<Grid x:Name="LayoutRoot"> <igChart:XamWebChart> <igChart:XamWebChart.Series> <igChart:Series ChartType="Column"> <igChart:Series.DataPoints> <igChart:DataPoint Value="10" Label="point1" /> <igChart:DataPoint Value="20" Label="point2" /> <igChart:DataPoint Value="30" Label="point3" /> </igChart:Series.DataPoints> </igChart:Series> </igChart:XamWebChart.Series> </igChart:XamWebChart> <Grid/> here in data point static values are given how could i bind them with my database values that are in my datatable please elaborate?
<Grid x:Name="LayoutRoot"> <igChart:XamWebChart> <igChart:XamWebChart.Series> <igChart:Series ChartType="Column"> <igChart:Series.DataPoints> <igChart:DataPoint Value="10" Label="point1" /> <igChart:DataPoint Value="20" Label="point2" /> <igChart:DataPoint Value="30" Label="point3" /> </igChart:Series.DataPoints> </igChart:Series> </igChart:XamWebChart.Series> </igChart:XamWebChart> <Grid/>
<
Grid
x
:
Name
="LayoutRoot"
>
igChart
XamWebChart
XamWebChart.Series
Series
ChartType
="Column"
Series.DataPoints
DataPoint
Value
="10"
Label
="point1"
/>
="20"
="point2"
="30"
="point3"
</
here is my code:
in XAML File:
<igCA:XamChart Name="xchEmployees"> <igCA:XamChart.Series> <igCA:Series ChartType="Bar" Fill="#FFD21717" Stroke="#FF000000" DataMapping="Lable=Income; Value=Profit"> </igCA:Series> </igCA:XamChart.Series> </igCA:XamChart>in cs file code behind:this .xchEmployees.Series[0].DataSource = mydataTable;it is giving an error:XamChart Warning: data binding error-wrong data points
<igCA:XamChart Name="xchEmployees">
<igCA:XamChart.Series>
<igCA:Series ChartType="Bar" Fill="#FFD21717" Stroke="#FF000000" DataMapping="Lable=Income; Value=Profit">
</igCA:Series>
</igCA:XamChart.Series>
</igCA:XamChart>
in cs file code behind:
this
.xchEmployees.Series[0].DataSource = mydataTable;
it is giving an error:
XamChart Warning: data binding error-wrong data points
Hello,
You can find a lot of samples at our new Samples Browser - https://es.infragistics.com/support/retired-products
Go trough the "Feature List" section in the left menu to browse the XamWebChart samples. You can also check the online help for more details - http://help.infragistics.com/Doc/DV/2011.1/CLR4.0/?page=Developers_Guide_xamWebChart.html
Regards,
Boyan