Home › forums › Using CanvasJS › Display Shared Tooltip Includes X Axis
Tagged: tooltip shared
This topic contains 2 replies, has 2 voices, and was last updated by Alexander 1 year, 11 months ago.
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?
You can use contentFormatter to achieve this. Please refer this jsfiddle.
I see! Thank you.
You must be logged in to reply to this topic.