Home forums Using CanvasJS Display Shared Tooltip Includes X Axis

This topic contains 2 replies, has 2 voices, and was last updated by  Alexander 8 months, 1 week ago.

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

    Alexander
    Member

    I would like to use a shared tooltip, but I want to also include the x axis value.

    I see that it is possible to do separately a shared tooltip which allows a nice combination for all y values in the vertical section that the mouse is hovering over. However, it doesn’t display my x value in the tooltip. I see that there is a content: attribute I can add, but that overrides the nice shared functionality. The toolTipShared attribute on the data: attribute doesn’t help either.

    What am I missing?

    • This topic was modified 8 months, 1 week ago by  Alexander. Reason: x instead of y
    #14733

    Suyash Singh
    Moderator

    @harmonickey,

    You can use contentFormatter to achieve this. Please refer this jsfiddle.
    ___
    Suyash Singh
    Team CanvasJS

    #14738

    Alexander
    Member

    I see! Thank you.

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

You must be logged in to reply to this topic.