Home › forums › Using CanvasJS › Display Shared Tooltip Includes X Axis
Tagged: tooltip shared
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.