![](/img/trans.png)
[英]How to set horizontal and vertical heading along with MS Chart X axis and Y axis?
[英]How to set the position of X and Y axes in MS chart?
我已將MS圖表設置如下:
Y axis min = -100 ; max = 100
X axis min = -100 ; max = 100
但是我希望我可以將MS圖表的Y軸和X軸位置交叉設置在中心, 看起來像這樣 :
有可能做到嗎?
使用Axis.Crossing
屬性。 給定范圍,您將
chart.ChartAreas[0].AxisX.Crossing = 0;
chart.ChartAreas[0].AxisY.Crossing = 0;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.