I assumed I would be able to find a solution to this issue very easily, but unfortunately I haven't been able to.
I have a pie chart that I want to simply display only 2 pieces. I have a sql command that uses the UNION command to join my two queries into one column for the chart. That is working fine, however I do not know how to change the pie charts legend to show the 2 colors, and add custom text for each color.
I changed the LegendDisplayMode to show ItemLabels. Also, I am trying to set the legend text by using:
This obviously only shows "Returns" on the legend, and does so twice for both slice colors. How do I change both of them?
I have a pie chart that I want to simply display only 2 pieces. I have a sql command that uses the UNION command to join my two queries into one column for the chart. That is working fine, however I do not know how to change the pie charts legend to show the 2 colors, and add custom text for each color.
I changed the LegendDisplayMode to show ItemLabels. Also, I am trying to set the legend text by using:
Protected
Sub
RadChart1_ItemDataBound(
ByVal
sender
As
Object
,
ByVal
e
As
Telerik.Charting.ChartItemDataBoundEventArgs)
Handles
RadChart1.ItemDataBound
e.SeriesItem.Name =
"Purchases"
e.SeriesItem.Name =
"Returns"
End
Sub
This obviously only shows "Returns" on the legend, and does so twice for both slice colors. How do I change both of them?