Tool Tip - Bar & Line Series

Thread is closed for posting
4 posts, 1 answers
  1. Murali
    Murali avatar
    16 posts
    Member since:
    Apr 2009

    Posted 26 Dec 2012 Link to this post

    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

  2. Answer
    Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 31 Dec 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Murali
    Murali avatar
    16 posts
    Member since:
    Apr 2009

    Posted 31 Dec 2012 Link to this post

    i want this post deleted, since the image i attached has some sensitive information. i would really appreciate it. Thank you.

    Murali.
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 01 Jan 2013 Link to this post

    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.
Back to Top