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
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>
精彩评论