I have set my MS chart look like this :
Y axis min = -100 ; max = 100
X axis min = -100 ; max = 100
But I hope I can set the MS chart Y-axes and X-axes position cross at the center which is look exactly like this :
Is it possible to do it?
Use the Axis.Crossing
property. Given your ranges, you'd set
chart.ChartAreas[0].AxisX.Crossing = 0;
chart.ChartAreas[0].AxisY.Crossing = 0;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.