How can I fix the number of MinorGrid lines to a fixed number in Microsoft's .NET 4.0 Chart?
- 阅读更多 关于 How can I fix the number of MinorGrid lines to a fixed number in Microsoft's .NET 4.0 Chart?
问题 I am trying to set a fixed number of minor grid lines in a .NET 4.0 Chart whose X axis is in a Logarithmic scale. I try to set the "Axis.Minor.Interval" property, this only makes the grid lines disappear. chart1.ChartAreas[0].AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; chart1.ChartAreas[0].AxisX.IntervalType = DateTimeIntervalType.Number; chart1.ChartAreas[0].AxisX.Interval = 100d; chart1.ChartAreas[0].AxisX.MajorGrid.IntervalType = DateTimeIntervalType.Number; chart1.ChartAreas