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

Dynamic series displaying legend label

4 Answers 60 Views
Chart
This is a migrated thread and some comments may be shown as answers.
siva
Top achievements
Rank 1
siva asked on 10 Mar 2011, 07:46 AM
I am generating a chart of similar to LiveData with Dynamic LineSeries definition.

1. how to display legend label for above dynamic series. i am using DataPointerMember as YValue.
2. How to appy the InteractivitySettings for the series i have done by below

seriesMapping.LegendLabel = "Counter0"

 

;

 

 

seriesMapping.SeriesDefinition.InteractivitySettings.HoverScope =

 

InteractivityScope.Series;

 

 

seriesMapping.SeriesDefinition.InteractivitySettings.SelectionScope =

 

InteractivityScope.Series;

 

 

seriesMapping.SeriesDefinition.LegendDisplayMode =

 

LegendDisplayMode.DataPointLabel;


It is not working please assist me. Thanks in advance it is very urgent

 

4 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 15 Mar 2011, 11:07 AM
Hello siva,

Directly to your questions:
1. To be able to show the "Counter 0" Legend Label of the Series you should set LegendDisplayMode property to SeriesLabel as described in our help topic (under Legend Display Modes).

2. The InteractivitySettings should be declared for the specific series definition as described here.

Greetings,
Evgenia
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
siva
Top achievements
Rank 1
answered on 15 Mar 2011, 11:40 AM
Evgenia
Thanks for your Kind Response.

1. I did this it doesn't display the Legend for me by setting the options LegendDisplayMode property to SeriesLabel

I am creating LineSeries on RunTime based on data, number of series gets generated.

Still legend is not showing up and hover setting is working on series once legend is visible i have to test on that by hovering.

Thanks in advance
Siva


0
Accepted
Evgenia
Telerik team
answered on 16 Mar 2011, 09:25 AM
Hi siva,

By default, the RadChart.DefaultView.ChartLegend is associated with the RadChart.DefaultView.ChartArea. When you predefine the DefaultView of the RadChart, the LegendName property of the ChartArea needs to be set to the name of the newly created ChartLegend. Otherwise, your legend items will not be auto generated. This is described in our help topic.
Make sure that ChartLegend has LegendName as shown here:
<telerik:ChartDefaultView.ChartLegend>
   <telerik:ChartLegend x:Name="ChartLegend1" />
</telerik:ChartDefaultView.ChartLegend>

The ChartArea should have the same LegendName:
<telerik:ChartArea LegendName="ChartLegend1">

Best wishes,
Evgenia
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
siva
Top achievements
Rank 1
answered on 16 Mar 2011, 11:17 AM
Thanks it is working. Thanks a lot for ur kind help
Tags
Chart
Asked by
siva
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
siva
Top achievements
Rank 1
Share this question
or