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

User Defined Legend Name

1 Answer 29 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Amitkumar
Top achievements
Rank 1
Amitkumar asked on 20 Apr 2012, 03:30 PM
HI
I want to Change Legend in my graph.
Currenty legend comming is Item0, I want to dispaly some differant name like(Amit-Prajapati-Immidate) But Not  Yaxis,Or X Asix.

here I attached my Screen.

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 25 Apr 2012, 07:10 AM
Hi Amit,

I guess that you have set the LegendDisplayMode of the series definition to DataPointLabel. You need to also add a new ItemMapping that maps a property of the underlying object to the label of the legend:
<telerik:SeriesMapping>
 <telerik:SeriesMapping.SeriesDefinition>
  <telerik:BarSeriesDefinition LegendDisplayMode="DataPointLabel"  />                              
 </telerik:SeriesMapping.SeriesDefinition>
 <telerik:ItemMapping DataPointMember="LegendLabel" FieldName="Name" />
 

Regards,
Petar Marchev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Amitkumar
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or