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

[Solved] Adding Tooltip in a RadChart Legend

7 Answers 386 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Anette
Top achievements
Rank 1
Anette asked on 23 Oct 2008, 04:38 AM
Hi,

How do you add a tooltip in a chart legend?

Thanks.

Anette

7 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 23 Oct 2008, 07:16 AM
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.
0
Anette
Top achievements
Rank 1
answered on 27 Oct 2008, 09:12 PM
Hello Manuel

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

Thanks,
Anette
0
Giuseppe
Telerik team
answered on 28 Oct 2008, 01:05 PM
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.
0
Michael Nagy
Top achievements
Rank 2
answered on 16 Jun 2009, 02:36 PM
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

 

 

0
Steve
Telerik team
answered on 18 Jun 2009, 11:26 AM
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.
0
Nadine
Top achievements
Rank 1
answered on 23 Jun 2009, 12:50 PM
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
0
Steve
Telerik team
answered on 26 Jun 2009, 07:18 AM
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.
Tags
Chart (Obsolete)
Asked by
Anette
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Anette
Top achievements
Rank 1
Michael Nagy
Top achievements
Rank 2
Steve
Telerik team
Nadine
Top achievements
Rank 1
Share this question
or