Legend area disappear after adding tooltip

3 posts, 1 answers
  1. Naren
    Naren avatar
    53 posts
    Member since:
    Aug 2010

    Posted 18 Nov 2010 Link to this post


    After adding tooltip( as shown bold below) inside chart, chart legend area (right side area displaying legend & series list) does not get visible......

    Can anyone help me?

    <telerik:RadChart HorizontalAlignment="Left"  Margin="0,0,0,0" x:Name="radChart1" VerticalAlignment="Top" Height="Auto" BorderBrush="#FF313131" Foreground="White" AxisForeground="Black" AxisElementBrush="White" Grid.ColumnSpan="2" BorderThickness="1" Grid.Column="1"  >
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFEBEBEB" Offset="0.991"/>
                                                <GradientStop Color="White"/>
                                            <telerik:RadContextMenu x:Name="ContextMenu" ItemClick="ContextMenu_ItemClick" Opened="ContextMenu_Opened">
                                                <telerik:RadMenuItem x:Name="mnuItem" Header="Menu Item 1" />
                                                    <telerik:ChartArea ItemToolTipOpening="ChartArea_ItemToolTipOpening" />


    Note : Legend (chart legend name)  is set to empty string as per our requirement.

  2. Answer
    Nikolay avatar
    397 posts

    Posted 22 Nov 2010 Link to this post

    Hi Naren,

    Do you mean that the Legend header has to an empty string and not the LegendName property? If you predefine the Default View, be sure that the ChartArea has its property LegendName set to the name of the created legend. Otherwise, your legend items will not be auto generated.Here is a sample code snippet :
    <telerikChart:RadChart x:Name="RadChart1">
                   <telerikCharting:ChartLegend x:Name="chartLegend" Header="" UseAutoGeneratedItems="True" />
                   <telerikCharting:ChartArea LegendName="chartLegend">

    For more information on Chart Legend, please, refer to this help topic.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Naren
    Naren avatar
    53 posts
    Member since:
    Aug 2010

    Posted 22 Nov 2010 Link to this post

    Thank you ....it was helpful
Back to Top