Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将图表绑定到generatedSequencetype List<float>。绑定后如何更新图表控件?
generatedSequence
List<float>
我试过这个但没有运气:
chart1.DataSource = new BindingList<float>(chartSequence); chart1.DataBind(); chart1.Update();
不要忘记在图表属性中设置 Series 的 DataSource 属性。
设置XValueMember和YValueMembers来自代码:
XValueMember
YValueMembers
chart1.Series.First().XValueMember = "X"; chart1.Series.First().YValueMembers = "Y";
教程:创建基本图表