Dynamic series displaying legend label

5 posts, 1 answers
  1. siva
    siva avatar
    12 posts
    Member since:
    Nov 2010

    Posted 10 Mar 2011 Link to this post

    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

     

  2. Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 15 Mar 2011 Link to this post

    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!
  3. siva
    siva avatar
    12 posts
    Member since:
    Nov 2010

    Posted 15 Mar 2011 Link to this post

    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


  4. Answer
    Evgenia
    Admin
    Evgenia avatar
    1437 posts

    Posted 16 Mar 2011 Link to this post

    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!
  5. siva
    siva avatar
    12 posts
    Member since:
    Nov 2010

    Posted 16 Mar 2011 Link to this post

    Thanks it is working. Thanks a lot for ur kind help
Back to Top