I am using the RadChart control to display a pie chart on my page.
However, it seems to be ignoring the LegendDisplayMode and StartAngle that I am setting on the series.
The RadChart is added to the page with the following:
1.
<
telerik:RadChart
ID
=
"ComplianceActionsChart"
runat
=
"server"
SkinsOverrideStyles
=
"true"
2.
ChartTitle-TextBlock-Text
=
"Compliance Actions Pie Chart"
AutoLayout
=
"True"
Skin
=
"DeepRed"
3.
Width
=
"330px"
Height
=
"200px"
PlotArea-EmptySeriesMessage-TextBlock-Text
=
"There is no data available yet."
4.
DefaultType
=
"Pie"
>
5.
</
telerik:RadChart
>
The code to create the series is:
1.
ChartSeries dataSeries =
new
ChartSeries(
"Current Data"
, ChartSeriesType.Pie);
2.
dataSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
3.
dataSeries.Appearance.StartAngle = -90;
4.
5.
ChartSeriesItem free =
new
ChartSeriesItem(aCurrentData.Item1);
6.
free.Name =
"Item 1"
;
7.
free.Label.TextBlock.Text =
"#%"
;
8.
dataSeries.AddItem(free);
When it displays, the legend only contains "Current Data" instead of the item names and the pie chart has the default rotation.
I tried creating the series in the aspx file with the appearance values set, but this produced the same result.
Is there anything I am missing in setting this up?