绑定数据后,Winforms图表会自动调整大小

时间:2020-01-11 07:12:45

标签: c# winforms charts

我正在将数据加载到选择ComboBox的图表中.....在ComboBox中进行每次选择之后,图表变得比以前更小。

profitChart.DataSource = total;
profitChart.Series["profit"].XValueMember = "Month";
profitChart.Series["profit"].YValueMembers = "Profit";
profitChart.Titles.Add("");
profitChart.Series["profit"].IsValueShownAsLabel = true;
profitChart.DataBind();

https://i.stack.imgur.com/0bgJY.jpg

https://i.stack.imgur.com/d4JjX.jpg

0 个答案:

没有答案