Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Chart Control 3.5 - X-axis Labels

Status
Not open for further replies.

barrylowe

Programmer
Nov 6, 2001
188
0
0
GB
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>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top