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

Setting Chart Legend Labels with no databinding

1 Answer 57 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jafin
Top achievements
Rank 2
Jafin asked on 20 Jan 2009, 11:48 PM
I have a report that binds a chart and manually builds the ChartSeriesItem collection.

the LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels.

Unfortunately the labels come out blank.   Researching the RadGrid forum it appears that because I am not setting the DataLabelsColumn this is why?   So then there is a solution offered to build the legend in the BeforeLayout event.  Unfortunately I the Charting in Reporting does not have this event.

What might be the way to set the Legend text to the Item labels in this case where I do not use a datasource for the char axis?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Jan 2009, 02:34 PM
Hello Jafin,

Since you are creating the ChartSeriesItems, you can also set the Name property, which would be shown in the legend.

Best wishes,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Jafin
Top achievements
Rank 2
Answers by
Steve
Telerik team
Share this question
or