Home forums Using CanvasJS Programmatic toggling of tooltips

This topic contains 2 replies, has 2 voices, and was last updated by  Suyash Singh 2 weeks, 1 day ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17449

    Ari
    Member

    I’m working with multiple charts on a page, and I would like to show tooltips for datapoints on all of them. Is this possible?

    #17471

    Suyash Singh
    Moderator

    @aborchew,

    As of now, syncing tootTips across multiple charts isn’t possible, out of the box. However, we are considering it for the future versions. For now we will create a work-around and get back to you at the earliest.

    ___
    Suyash Singh
    Team CanvasJS

    #17485

    Suyash Singh
    Moderator

    @arborchew,

    You can sync toolTips across charts by getting the pixel co-ordinates from the first chart & then triggering an event in second chart and so on. convertValueToPixel() and convertPixelToValue() methods can be used to getting the pixel co-ordinates & corresponding values. Here is a jsfiddle for the same. Please note that there may be a slight variation in x-value as pixel co-ordinates are used.

    ___
    Suyash Singh
    Team CanvasJS

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.