Is there a possibility to format a MS Chart Control chart, that the axis label is rendered between major/minor tick marks?
E.g.: on the X axis
| | | x | |
| x | x | | |
| | | | x |
+-------+-------+-------+-------+
1/1 2/1 3/1 4/1
instead of default:
| | | x |
| x x | |
| | | | x
+-------+-------+-------+-------+----
1/1 2/1 3/1 4/1
Click the chart, and then click the Chart Design tab. Click Add Chart Element > Gridlines. Choose the axis that you want to apply the gridlines to or click More Gridline Options to open the Format Major Gridlines pane. You can change the line transparency, add arrows, and apply shadow, glow, and soft edge effects.
In Excel 2007-2010, go to the Chart Tools > Layout tab > Data Labels > More Data label Options.
Try setting the MajorGrid IntervalOffset to .5 (assuming your Interval is set to 1). Here is some example markup (this markup would be found under the /asp:Chart/ChartAreas/asp:ChartArea nodes):
<AxisX Interval="1"> <MajorGrid Enabled="True" LineColor="Black" Interval="1" IntervalOffset=".5" /> </AxisX>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With