Some time ago, Microsoft's mschart control was used for development. Although it is powerful, it has never been used, and it has been in the process of exploration. It took half a day to study a small problem. I finally solved the problem of incomplete display of the X axis coordinates. Of course, I also found a lot of information on the Internet to solve the problem. I will make a summary today and leave it to my friends later.
If the x-axis coordinates exceed 9 digits, they cannot be completely displayed, and they are displayed separately. This makes people uncomfortable. In fact, you only need to make the following settings:
Chart1.chartareas [0]. axisx. interval = 1;// Set the interval between X axis coordinates to 1
Chart1.chartareas [0]. axisx. intervaloffset = 1;// Set the X axis coordinate offset to 1
Chart1.chartareas [0]. axisx. labelstyle. isstaggered =True;// Set whether to display the data in a staggered manner. For example, if the data is displayed in two rows
To put it bluntly, it's really easy! It is really a headache for people who have never played mschart !!
Effect: the first one is not set, and the second one is set.