Home forums Using CanvasJS Shared tooltip without common X variable

This topic contains 1 reply, has 2 voices, and was last updated by  Bivek Singh 3 weeks, 2 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #17676

    Wojciech
    Member

    Hello,
    I made chart that represents 4 independent temperatures. I also had to simplify database so in affect neither of lines share Date on X axis.
    I would like to use shared tooltip but it shows usually only one value in certain point in my case. Is it possible to show estimated value from another dataPoints (or the nearest value) in shared tooltip?

    #17698

    Bivek Singh
    Moderator

    @coolex,

    Shared tooltip works for dataPoints sharing the same X values by default. You can use entries of contentFormatter to modify the tooltip as per your requirements. Entries contains all the dataSeries and dataPoints which can be used to find the nearest value and show it in toolTip.

    —–
    Bivek Singh,
    Team canvasJS

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

You must be logged in to reply to this topic.