Home forums Using CanvasJS Completely custom tooltip

Tagged: 

This topic contains 3 replies, has 3 voices, and was last updated by  Suyash Singh 3 weeks, 2 days ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17666

    sbsbsb
    Member

    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.

    #17671

    Bivek Singh
    Moderator

    @sbsbsb

    You can customize tooltip as per your requirement by modifying styles of canvasjs-chart-tooltip class. Please take a look at this example.

    —–
    Bivek Singh,
    Team CanvasJS

    #17680

    sbsbsb
    Member

    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!

    #17684

    Suyash Singh
    Moderator

    @sbsbsb,

    Thanks for the suggestion we will consider it for the future versions.
    ___
    Suyash Singh
    Team CanvasJS

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

You must be logged in to reply to this topic.