Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Pie Chart DataPoints don't show up when DataMapping is set as DataMapping="Value=3/20/2010"
posted

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.

Parents
No Data
Reply
  • 17605
    posted

    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);

Children
No Data