Home › forums › Using CanvasJS › Completely custom tooltip
This topic contains 3 replies, has 3 voices, and was last updated by Suyash Singh 10 months ago.
Is it possible to specify a completely custom tooltip? From what I can tell in the documentation, the content and contentFormatter only pertain to the internal content of the tooltip. I’d like to replace the entire thing including borders, so that I can apply styling with plain CSS instead of using the options available on the built-in toolTip.
You can customize tooltip as per your requirement by modifying styles of canvasjs-chart-tooltip class. Please take a look at this example.
Thank you, that worked. I do think it would be simpler just to pass in my own HTML so it isn’t necessary to know your internal implementation details about what CSS attributes to override, but that’s more of a feature request. Thanks!
Thanks for the suggestion we will consider it for the future versions.
You must be logged in to reply to this topic.