How to bind data to chart in winforms and refresh chart?

后端 未结 1 1786
一个人的身影
一个人的身影 2021-01-12 11:32

I tried to bind chart to generatedSequence of type List. How to update chart control after binding?

I tried this but with no l

相关标签:
1条回答
  • 2021-01-12 12:05

    Don't forget set DataSource property of Series in chart property.

    enter image description here

    Set XValueMember and YValueMembers from code:

    chart1.Series.First().XValueMember = "X";
    chart1.Series.First().YValueMembers = "Y";
    

    Tutorial: Creating a Basic Chart

    0 讨论(0)
提交回复
热议问题