This is a migrated thread and some comments may be shown as answers.

Legend to show values when in ItemLabels display mode

2 Answers 73 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Anders Mad.
Top achievements
Rank 2
Anders Mad. asked on 09 May 2008, 02:48 PM

When setting a ChartSeries to Appearance.LegendDisplayMode = Charting.ChartSeriesLegendDisplayMode.ItemLabels, is there a way to display the values in the legend?

The legend seems to use the item "Name" and not the "Label" as the ChartSeriesLegendDisplayMode.ItemLabels suggests.

I set the item like this (e.g.):
  item.Name = "My Item";
  item.Label.TextBlock.Text = item.Name + " #%";

Is it possible here to get the legend to display "My Item 50%" rather than just "My Item" (using c#)?

Thank you..

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 10 May 2008, 12:38 PM
Hello Anders M.,

I am afraid this can only be achieved with custom legend items at this moment. You can set LegendDisplayMode to Nothing and manually add legend items.

I will forward this request to our developers for a consideration. Please, accept our apologies for the inconvenience. Your Telerik points have been updated.

Best wishes,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Anders Mad.
Top achievements
Rank 2
answered on 10 May 2008, 06:41 PM
Thank you.. I didn’t expect to get a reply on a Saturday :-)
Tags
Chart (Obsolete)
Asked by
Anders Mad.
Top achievements
Rank 2
Answers by
Ves
Telerik team
Anders Mad.
Top achievements
Rank 2
Share this question
or