Adding Tooltip in a RadChart Legend

Thread is closed for posting
8 posts, 0 answers
  1. Anette
    Anette avatar
    9 posts
    Member since:
    Sep 2008

    Posted 22 Oct 2008 Link to this post

    Hi,

    How do you add a tooltip in a chart legend?

    Thanks.

    Anette
  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 23 Oct 2008 Link to this post

    Hello Anette,

    You need to set the ActiveRegion.Tooltip property for each LabelItem in the RadChart.Legend.Items collection -- you can achieve that by handling the BeforeLayout server-side event like this:

    protected void RadChart1_BeforeLayout(object sender, EventArgs e) 
        foreach (LabelItem legendItem in RadChart1.Legend.Items) 
        { 
            legendItem.ActiveRegion.Tooltip = "test"; 
        } 



    Best wishes,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anette
    Anette avatar
    9 posts
    Member since:
    Sep 2008

    Posted 27 Oct 2008 Link to this post

    Hello Manuel

    How about if I need to add different tooltip for each legend items?

    Thanks,
    Anette
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 28 Oct 2008 Link to this post

    Hi Anette,

    We are unsure why are you experiencing problems with this as you can assign different tooltips to the different LabelItems as well (instead of using a foreach loop):

    RadChart1.Legend.Items[0].ActiveRegion.Tooltip = "test"
    RadChart1.Legend.Items[1].ActiveRegion.Tooltip = "test2"



    Best wishes,
    Manuel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Michael Nagy
    Michael Nagy avatar
    18 posts
    Member since:
    May 2008

    Posted 16 Jun 2009 Link to this post

    hello all ,
    i am using Reporting service and i add chart items dynamically i want to add a toolttip to chart item ..
    here is code sample ..

     


    ChartSeries series = new ChartSeries();  
    myChart.Series.Add(series);  
    ChartSeriesItem item = new ChartSeriesItem();   
    item.YValue = value ;   
    item.Label.TextBlock.Text = text;  
    item.Name = text;  
    item.ActiveRegion.Tooltip=text; // here is my question.   
    series.AddItem(item); 

    all things went right but there is no tool tip at the item..

     

     

    so please i need a help

     

     

  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 18 Jun 2009 Link to this post

    Hello Michael,

    If by Reporting services, you're reffering to our Telerik Reporting solution, then as explained in the known limitations forum thread, interactive features are currently not supported.

    Please excuse us for the inconvenience.

    Regards,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. Nadine
    Nadine avatar
    20 posts
    Member since:
    Jan 2009

    Posted 23 Jun 2009 Link to this post

    Hi,

    you wrote that Tooltips for series-items are not available...
    but if the LabelText of an item is too long for the pul area, the LabelText is shown with the ellipse "..." and then there IS a tooltip.

    So I would think, that this functionality is already available but not for us to use... is that right?

    Thank you

    Nadine
  9. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 26 Jun 2009 Link to this post

    Hello Nadine,

    As can be seen from the attached screenshot, "the tooltip" is always the alt tag of the chart image when the report is rendered in browser i.e. alt="Chart". Currently there is no way to show tooltips and other interactive features as explained in the previously referred thread.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017