简体   繁体   中英

how to displace the graph along x-axis for 1 position left?

i need to displace graph. for 1 point left. i need it to start from zero. (chartarea.isstartedfromzero is set to true). but it is not zero. it is 1. can smb help me to solve my problem. is it possible at all? thanks.

Chart1.ChartAreas[0].AxisX.Minimum = 1;

这是您要查找的代码,因为您不想以0开头。

Try adjust this proerty:

Chart1.ChartAreas[0].AxisX.IntervalOffset

For example:

Chart1.ChartAreas[0].AxisX.Minimum = 1;
Chart1.ChartAreas[0].AxisX.IntervalOffset = -1;

试试这一行:

Chart1.ChartAreas[0].AxisX.Minimum = 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM