Good afternoon ladies and gentlemen,
I want to create a Pie chart using a RadChart control as declared below:
| <telerik:RadChart runat="server" ID="RadChart1" DefaultType="Pie" Skin="Office2007"> |
| <Series> |
| <telerik:ChartSeries Name="Total" DataLabelsColumn="Name" DataYColumn="Total" Type="Pie" Appearance-LegendDisplayMode="ItemLabels"> |
| <Appearance> |
| <FillStyle FillType="Solid" MainColor="69, 115, 167"> |
| </FillStyle> |
| <TextAppearance TextProperties-Color="Black"> |
| </TextAppearance> |
| <Border Color="69, 115, 167" /> |
| </Appearance> |
| </telerik:ChartSeries> |
| </Series> |
| <PlotArea> |
| <XAxis AutoScale="False" Step="1"> |
| <AxisLabel TextBlock-Text="#Y"></AxisLabel> |
| <Appearance Color="134, 134, 134"> |
| </Appearance> |
| </XAxis> |
| <Appearance Dimensions-Margins="10,10,10,10"> |
| <FillStyle FillType="Solid" MainColor="255, 255, 255"> |
| </FillStyle> |
| <Border Visible="false" /> |
| </Appearance> |
| </PlotArea> |
| <Appearance Border-Visible="false" FillStyle-MainColor="White" /> |
| <ChartTitle Visible="false" /> |
| <Legend Visible="true" /> |
| </telerik:RadChart> |
Is it possible to have the legend display a different data column as opposed to which is specified by DataLabelsColumn?
The reason for this is I want the axis labels to display the totals as specified in the Total column, and have the legend display something meaningful as the Name column.
If I change the DataLabelsColumn to Count, it also modified the Legend text which isn't what I want. Am I missing something? The datasource comes from a stored procedure, and is bound via codebehind at runtime.
Thankyou for your assistance,
Regards,
Tyler.