I have a fairly basic line graph which is bound to a SQLDataSource control. The graph displays perfectly, but I want the labels on the X-axis to display vertically rather than horizontally.
I have used the following code to try and do this but it is having no effect:
<AxisX Title="Patient Safety Submissions" IsLabelAutoFit="True">
<LabelStyle Angle="90" interval="1" />
</AxisX>
Can anyone help?
Here is the complete code for my chart:
<asp:Chart ID="chrtHHcompliance" runat="server" DataSourceID="sqlHHcompliance" Width="1000px">
<Titles>
<asp:Title Font="Microsoft Sans Serif, 12pt, style=Bold, Underline"
Name="Title1" Text="Hand Hygiene Weekly Percentage Compliance">
</asp:Title>
</Titles>
<Series>
<asp:Series Name="HHcompliance" ChartArea="ChartArea1" ChartType="Line" BorderWidth="2" Color="Red" MarkerStyle="Circle" MarkerSize="5" XValueMember="SubmissionPeriodStartDate" YValueMembers="HHcompliance">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderColor="#999999">
<AxisX Title="Patient Safety Submissions" IsLabelAutoFit="True">
<LabelStyle Angle="90" interval="1" />
</AxisX>
<AxisY Title="Hand Hygiene Compliance (%)" Interval="10">
</AxisY>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
I have used the following code to try and do this but it is having no effect:
<AxisX Title="Patient Safety Submissions" IsLabelAutoFit="True">
<LabelStyle Angle="90" interval="1" />
</AxisX>
Can anyone help?
Here is the complete code for my chart:
<asp:Chart ID="chrtHHcompliance" runat="server" DataSourceID="sqlHHcompliance" Width="1000px">
<Titles>
<asp:Title Font="Microsoft Sans Serif, 12pt, style=Bold, Underline"
Name="Title1" Text="Hand Hygiene Weekly Percentage Compliance">
</asp:Title>
</Titles>
<Series>
<asp:Series Name="HHcompliance" ChartArea="ChartArea1" ChartType="Line" BorderWidth="2" Color="Red" MarkerStyle="Circle" MarkerSize="5" XValueMember="SubmissionPeriodStartDate" YValueMembers="HHcompliance">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderColor="#999999">
<AxisX Title="Patient Safety Submissions" IsLabelAutoFit="True">
<LabelStyle Angle="90" interval="1" />
</AxisX>
<AxisY Title="Hand Hygiene Compliance (%)" Interval="10">
</AxisY>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>