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.
我看到当一个盒子在 Y 轴上超过最大和最小限制时,盒子会在图表区域外流血。有解决方案/调整吗?
您是自己设置最小值和最大值还是让控件决定?尝试将它们设置为自动。
chart1.ChartAreas[0].AxisY.Maximum = double.NaN; chart1.ChartAreas[0].AxisY.Minimum = double.NaN;
尝试以下操作:
chart1.ChartAreas[0].AxisY.Crossing = 0; chart1.ChartAreas[0].AxisX.Crossing = 0;