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.
我无法弄清楚如何将 a 绑定Queue<double>到 C# 中的 PointAndFigure 图表。我已经做了:
Queue<double>
// q is a Queue<double> modified somewhere else pointAndFigureChart1.DataSource = q;
我想我还需要设置XValueMembersor YValueMembers。问题是我不知道列的名称,因为我的数据源中根本没有列!
XValueMembers
YValueMembers
根据我对图表的经验,您需要将队列数据添加到系列并将该系列添加到图表控件。像这样的东西。
this.chart1.Series.Add("Series1"); this.chart1.Series["Series1"].Points.DataBindY(myQ);