我有以下图表输出和生成它的代码部分。 IsLabelAutofit = false但仍未显示所有月份标签。
<asp:Series Name="Series1" XValueMember="xDate" YValueMembers="TimePerDay" ChartArea="ChartArea2" ChartType="column" YValuesPerPoint="6" IsValueShownAsLabel="true" LabelFormat="{0:N0}" >
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea2">
<AxisY Interval="450">
<MajorGrid Enabled="true" LineColor="lightgray" />
<StripLines>
<asp:StripLine TextAlignment="Near" BorderDashStyle="Solid" BorderColor="#0000ff" BorderWidth="2" BackColor="#0000ff" />
<asp:StripLine BorderWidth="5" />
</StripLines>
</AxisY>
<AxisX IsLabelAutoFit="false" TitleForeColor="black">
<LabelStyle Format="MMMM" Angle="-90" IsEndLabelVisible="true" />
<MajorGrid Enabled="false" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
答案 0 :(得分:1)