简体   繁体   English

如何沿x轴向左移动图形1个位置?

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

i need to displace graph. 我需要替换图表。 for 1 point left. 还剩1分 i need it to start from zero. 我需要它从零开始。 (chartarea.isstartedfromzero is set to true). (chartarea.isstartedfromzero设置为true)。 but it is not zero. 但不为零。 it is 1. can smb help me to solve my problem. 它是1.可以帮助我解决我的问题。 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;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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