I have a pie chart that displays everything that I want it to, however I can not get the label to show BOTH the number from the column, and the percentage of the chart.
This shows the number correctly:
This shows the percentage correctly:
But this does NOT show both, it only shows the percentages still...
Is there a way to display both?
This shows the number correctly:
Protected
Sub
RadChart1_ItemDataBound(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Charting.ChartItemDataBoundEventArgs)
Handles
RadChart1.ItemDataBound
e.SeriesItem.Label.TextBlock.Text = TryCast(
DirectCast
(e.DataItem, DataRowView)(
"number"
),
String
)
End
Sub
This shows the percentage correctly:
e.SeriesItem.Label.TextBlock.Text =
" - #%"
But this does NOT show both, it only shows the percentages still...
e.SeriesItem.Label.TextBlock.Text = TryCast(
DirectCast
(e.DataItem, DataRowView)(
"number"
),
String
) +
" - #%"
Is there a way to display both?