2X faster development
The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
Essential Chart supports rotating data labels by using the Angle property of the Data Label. Data label rotation can be performed for all the series in the Chart by using the CommonSeriesOptions or for a specific series in the Series collection. The following code example illustrates the use of CommonSeriesOptions to rotate Data Labels of all the series in the Chart. ASP <ej:Chart ID="container" CanResize="true" runat="server"> <CommonSeriesOptions> <Marker> <DataLabel Visible="true" Angle="-90" Offset="-40" VerticalTextAlignment= ”Near”> <Font Size=”14px” Color=”White”></ Font> </DataLabel> </Marker> </CommonSeriesOptions> . . . . . . . . . . </ej:Chart>
The following screenshot displays the chart with rotated data labels. Figure 1: Chart with rotated data labels The following code example illustrates rotating data labels of individual series in the Series collection. ASP <ej:Chart ID="container" CanResize="true" runat="server"> <Series> < ej:Series Name="Gold" > <Marker> <DataLabel Visible="true" Angle="-90" Offset="-40" VerticalTextAlignment= ”Near”> <Font Size=”14px” Color=”White”></ Font> </DataLabel> </Marker> . . . . . . . . . . </ ej:Series> . . . . . . . . . . </Series> </ej:Chart>
The following screenshot displays the Chart with data labels only for the first series (Gold).
Figure 2: Chart with data labels only for the first series
|
2X faster development
The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.