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

Tool Tip - Bar & Line Series

3 Answers 81 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
BSL Support
Top achievements
Rank 1
BSL Support asked on 26 Dec 2012, 11:46 PM
Hi. i am assigning tooltips to the pointmarks in code behind. There is a problem though, any line series point mark that over laps the bar series the line series point mark shows the toop tip for the bar graph, how i can i solve this issue. any help is appreciated. the code below is repeated for each chart series item.

csi As New ChartSeriesItem

csi.ActiveRegion.Tooltip = toolTipText

3 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 31 Dec 2012, 05:15 PM
Hi Murali,

I am afraid this behavior cannot be controlled through RadChart API. It is based on the way the browser handles image maps -- this is how tooltips are implemented in RadChart. Basically, if areas in an image map are overlapping, the browser takes into account the first area found. In your scenario the Bar series is defined before the Line series, hence the behavior you observe.

One possible workaround would be to implement a javascript function, which finds the chart image map (with ID=imRadChart1, given that the ID of the control is RadChart1. Then this function should reverse the areas in the image map, so that the areas for the line chart appear before those for the bars. I have attached a simple project to demonstrate this.

Greetings,
Petar Marchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
BSL Support
Top achievements
Rank 1
answered on 31 Dec 2012, 06:34 PM
i want this post deleted, since the image i attached has some sensitive information. i would really appreciate it. Thank you.

Murali.
0
Petar Marchev
Telerik team
answered on 01 Jan 2013, 02:16 PM
Hi Murali,

I have removed the image in mind. However, I have decided to leave the forum post alive for others to see, so that they will be able to see the work-around if they have the same issue. I just want to let you know that support tickets are private, so next time you can open a support ticket instead of a forum thread if you need to send analogous attachments.  

Greetings,
Petar Marchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
BSL Support
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
BSL Support
Top achievements
Rank 1
Share this question
or