MS Chart Controls: grid line layout between labels

Is it possible to format the MS diagram control diagram so that the axis mark is displayed between the main / min marks?

For example: on the x axis

| | | x | | | x | x | | | | | | | x | +-------+-------+-------+-------+ 1/1 2/1 3/1 4/1 

instead of the default value:

 | | | x | | xx | | | | | | x +-------+-------+-------+-------+---- 1/1 2/1 3/1 4/1 
+6
c # microsoft-chart-controls
source share
1 answer

Try setting MajorGrid IntervalOffset to .5 (assuming your interval is set to 1). Here is a markup example (this markup will be found in the / asp: Chart / ChartAreas / asp: ChartArea nodes):

<AxisX Interval = "1"> <MajorGrid Enabled = "True" LineColor = "Black" Interval = "1" Interval Offset = ". 5" /> </AxisX>

+7
source share

All Articles