Can't bind datatable to Chart Control

后端 未结 3 488
萌比男神i
萌比男神i 2021-01-21 02:24

I\'d like to use a polar chart in my test application. I\'ve a data table with a couple of columns where the column with the name of \"X\" should provide the x value members, th

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-21 03:07

    This may help you Write this on page load

    chart.DataSource = dataqtableName;
    chart.Series["seriesName"].XValueMember = "columNameUwantToBind";
    chart.Series["seriesName"].YValueMembers = "columNameUwantToBind";
    chart.DataBind();
    

提交回复
热议问题