The X-Axis can be one of the following 2:
- Continuous: In this mode the scale will be continuous and not dictated by the data points but by a range and a step.
- Discrete/Categorical: The X-Axis is simply a collection of points. There is no fixed relationship between the labels, they are simply strings.
Some chart type: Bars,Hi-Low-Close,Candlestick and Cubes only support discrete/categorical X-Axis, therefore, if like in your case, the date skips some values, they will be reflected in the X-Axis.
When your chart contains X-Values and the X-Axis it is categorical, we do what we call "Data Driven Labeling" in which we let the data control the labels on the X-Axis, not the range, but the actual points.
In a continuous X-Axis, the data is irrelevant. Only the range has an effect on the X-Axis labeling.
Looks to me that you want to have Data Driven labels, but by default, if your chart is not one of the galleries mentioned above, your X-Axis will be continuous. You can change this by setting:
chart.ExtraStyle |= ChartStyles.ForceDataDriven;