Hi , when i bind a dataview to the DataSource of a series and set DataMapping's value as "3/20/2010", the datapoints don't show up . is this a bug ?
structure of the dataview:
Name 3/20/2010 3/22/2010
A 1.85 1.85
B 1.85 1.85
Thanks.
I’m trying this code and it works:
DataTable table = new DataTable();
table.Columns.Add("Name", typeof(string));
table.Columns.Add("3/20/2010", typeof(double));
table.Columns.Add("3/22/2010", typeof(double));
table.Rows.Add("A", 1.85, 1.85);
table.Rows.Add("B", 1.85, 1.85);
Series series = new Series();
series.ChartType = ChartType.Pie;
series.DataMapping = "Value=3/20/2010";
series.DataSource = table;
this.xamChart.Series.Add(series);