Display tooltip for multiple charts simultaneously

3 posts, 0 answers
  1. Gerard
    Gerard avatar
    16 posts
    Member since:
    Mar 2016

    Posted 29 Mar Link to this post

    Hi,

    I am displaying multiple serie charts on a single page which all have the same categoryAxis. What I would like to do is display the tooltip in floating panel and crosshair for every chart when hovering over a single one.

    I've synchronized TrackBall in every graphic, I've proved with TrackInfoUpdated event, but I've only get the information from one single graphic, not from all of them. Can I get the information from all set of points in this event? there are any other ideas to attach every point from different graphics?

     

    Thanks,
    Gerard

     

  2. Dinko
    Admin
    Dinko avatar
    204 posts

    Posted 01 Apr Link to this post

    Hi Gerard,

    I can suggest you a possible approach which you can use to achieve your requirement.
    • You can declare a collection of DataPointInfo objects which will hold the information about the track ball data points of all charts. 
    • When the TrackInfoUpdated event is called you can populate the collection with the data point infos. You can get them from the Context.DataPointInfos collection of the event arguments. This can be done in the event handler of each chart. This way you will ensure that the information about all charts is in your collection.
    • Then you can create a tooltip or a window control (the float panel) and populate it with the data point infos collection that contains the information about all charts.

    You can find this approach in the attached project. Please give it a try and let me know if it helps.

    Regards,
    Dinko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Gerard
    Gerard avatar
    16 posts
    Member since:
    Mar 2016

    Posted 05 Apr in reply to Dinko Link to this post

    Dinko said:Hi Gerard,

    I can suggest you a possible approach which you can use to achieve your requirement.
    • You can declare a collection of DataPointInfo objects which will hold the information about the track ball data points of all charts. 
    • When the TrackInfoUpdated event is called you can populate the collection with the data point infos. You can get them from the Context.DataPointInfos collection of the event arguments. This can be done in the event handler of each chart. This way you will ensure that the information about all charts is in your collection.
    • Then you can create a tooltip or a window control (the float panel) and populate it with the data point infos collection that contains the information about all charts.

    You can find this approach in the attached project. Please give it a try and let me know if it helps.

    Regards,
    Dinko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.

    Dinko Hi ,

    thank you very much for your time, worked perfectly .

    Greetings and thanks.

     

     

Back to Top