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

Custom Tooltip

2 Answers 45 Views
Chart
This is a migrated thread and some comments may be shown as answers.
shashank
Top achievements
Rank 1
shashank asked on 22 Nov 2010, 10:18 AM
Hi All,

I have two line series on my chart area. I  want to show custom tooltip on ItemTooltipOpening event. I have one problem while showing tooltip, how do I recognize that on which lineseries datapoint mouse hover?
I want to show different tootip with single ItemTooltipOpening  event ?
how do I capture particular line series?

Thanks,

2 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 24 Nov 2010, 09:08 AM
Hello shashank,

 You can get to SeriesDefinition from ItemTooltipEventArgs.

void ChartArea_ItemToolTipOpening(ItemToolTip2D tooltip, ItemToolTipEventArgs e)
{
    ISeriesDefinition definition = e.DataSeries.Definition;
}

This gets you ISeriesDefinition which you can use to get the information that you need.

I hope this helps.

Best wishes,
Evgeni "Zammy" Petrov
the Telerik team

Browse the videos here>> to help you get started with RadControls for WPF
0
shashank
Top achievements
Rank 1
answered on 25 Nov 2010, 08:31 AM
Thanks!
Tags
Chart
Asked by
shashank
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
shashank
Top achievements
Rank 1
Share this question
or