在我的 X 轴上,我有几个月的时间。该图表最多显示 11 个点,即同一年的 1-11 月,但是当我添加 12 个点(1-12 月)时,它会做一个自动标记的事情,并每 4 个月更改一次间隔。
如何更改图表,使其在自动标注前 12 个月显示?
这是我目前使用的服务器控制代码。
<asp:CHART ID="Chart1" runat="server"
BorderColor="181, 64, 1" BorderDashStyle="Solid" BorderWidth="2" Height="296px"
ImageLocation="~/TempImages/ChartPic_#SEQ(300,3)" ImageType="Png"
Palette="None" Width="700px"
BorderlineColor="">
<legends>
<asp:Legend BackColor="Transparent"
Font="Trebuchet MS, 8pt, style=Bold"
IsTextAutoFit="False" Name="Default" Alignment="Center"
DockedToChartArea="ChartArea1" Docking="Top" IsDockedInsideChartArea="False"
Title="Legend">
</asp:Legend>
</legends>
<series>
<asp:Series BorderColor="180, 26, 59, 105" BorderWidth="2" ChartType="Line"
Color="220, 65, 140, 240" MarkerSize="6"
Name="Series1" ShadowColor="Black"
ShadowOffset="2" XValueType="DateTime" YValueType="Double"
LabelFormat="c0" LegendText="Actual"
MarkerStyle="Circle">
</asp:Series>
<asp:Series BorderColor="180, 26, 59, 105" BorderWidth="2" ChartType="Line"
Color="220, 224, 64, 10" MarkerSize="6" Name="Series2" ShadowColor="Black"
ShadowOffset="2" XValueType="DateTime" YValueType="Double"
LabelFormat="c0" LegendText="Projected"
MarkerStyle="Circle">
</asp:Series>
<asp:Series BorderColor="180, 26, 59, 105" BorderWidth="2"
ChartArea="ChartArea1" ChartType="Line"
Legend="Default" Name="Series3" LabelFormat="c0" XValueType="DateTime"
YValueType="Double" Color="0, 192, 192" MarkerSize="6"
ShadowColor="Black" ShadowOffset="2" LegendText="Actual Credit Limit"
MarkerStyle="Circle">
</asp:Series>
</series>
<chartareas>
<asp:ChartArea BackColor="#DEEDF7" BackGradientStyle="TopBottom"
BackSecondaryColor="White" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid"
Name="ChartArea1" ShadowColor="Transparent">
<area3dstyle inclination="40" isclustered="False" isrightangleaxes="False"
lightstyle="Realistic" perspective="9" rotation="25" wallwidth="3" />
<axisy linecolor="64, 64, 64, 64" islabelautofit="False"
isstartedfromzero="False">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" Format="c0" />
<majorgrid linecolor="64, 64, 64, 64" />
</axisy>
<axisx linecolor="64, 64, 64, 64" intervaloffsettype="Months"
intervaltype="Months" islabelautofit="False" isstartedfromzero="False">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" Angle="-60"
Format="MMM yy" />
<majorgrid linecolor="64, 64, 64, 64" />
</axisx>
</asp:ChartArea>
</chartareas>
</asp:CHART>
谢谢。