A while ago to do development to use Microsoft's MSChart control, although the function is powerful, but never used, has been groping, a small problem spent half a day to study. Finally the x axis coordinates display incomplete problem to solve, of course, also find a lot of information on the Internet to be done, today to make a summary for later friends.
X axis If more than 9 digits, it can not be fully displayed, will be a separate display, so that people are very uncomfortable, in fact, as long as the following settings:
Chart1.chartareas[0]. Axisx.interval = 1; Set the x-axis coordinates at an interval of 1
Chart1.chartareas[0]. Axisx.intervaloffset = 1; To set the x-axis coordinate offset to 1
Chart1.chartareas[0]. AxisX.LabelStyle.IsStaggered = true; Whether the settings are interleaved, such as the time of the data is divided into two lines to display
To put it bluntly, it's really simple. It's really a headache for people who haven't played MSChart.
Look at the following picture effect: The first one is not set, the second is set.