Hi
I have a RadPivotTable with a RadHTMLChart. I need the chart to show the value in percentage in a Pie format.
For example I have values is 500, 250 and 250 and the total of the pivot row is 1000. I want to see the percentage in the pie : 50%, 25%, 25%.
Is this possible?
<
telerik:RadPivotGrid
ID
=
"grdTotalTimings"
runat
=
"server"
AllowPaging
=
"true"
PageSize
=
"10"
Skin
=
"WebBlue"
Width
=
"30em"
ShowDataHeaderZone
=
"false"
ShowRowHeaderZone
=
"false"
ShowColumnHeaderZone
=
"false"
OnNeedDataSource
=
"grdTotalTimings_NeedDataSource"
OnCellDataBound
=
"grdTotalTimings_CellDataBound"
>
<
Fields
>
<
telerik:PivotGridReportFilterField
DataField
=
"Period"
></
telerik:PivotGridReportFilterField
>
<
telerik:PivotGridRowField
DataField
=
"AreaName"
></
telerik:PivotGridRowField
>
<
telerik:PivotGridAggregateField
DataField
=
"Amount"
Aggregate
=
"Sum"
DataFormatString
=
"{0:N0}"
></
telerik:PivotGridAggregateField
>
<
telerik:PivotGridAggregateField
DataField
=
"Value"
Aggregate
=
"Sum"
DataFormatString
=
"{0:C}"
></
telerik:PivotGridAggregateField
>
</
Fields
>
</
telerik:RadPivotGrid
>
<
telerik:RadHtmlChart
ID
=
"chrTotalTimings"
runat
=
"server"
Transitions
=
"true"
>
<
PlotArea
>
<
Series
>
<
telerik:PieSeries
StartAngle
=
"90"
>
<
LabelsAppearance
Position
=
"Center"
DataFormatString
=
"[0] %"
></
LabelsAppearance
>
<
TooltipsAppearance
Color
=
"White"
DataFormatString
=
"[0] %"
></
TooltipsAppearance
>
</
telerik:PieSeries
>
</
Series
>
</
PlotArea
>
</
telerik:RadHtmlChart
>
the content of the pie is filled in CellDataBound at this moment (simular like in this demo : http://demos.telerik.com/aspnet-ajax/pivotgrid/examples/applicationscenarios/chartintegration/defaultcs.aspx )
Thanks for any help
Suzy