Home Forums Chart Support Custom tooltip for column chart

Custom tooltip for column chart

Viewing 3 posts - 1 through 3 (of 3 total)
  • #31945

    Is there a way to have a custom tooltip for each column in a column or stacked column chart? For instance, when hovering column 1, the info given has 3 values and the info given hovering column 2 has only 1. What Im trying to achieve is a stacked column where some values dont apply to every column, eg: the column 1 is divided in 3 parts, while the column 2 only 1 part. With stacked column I just set y: 0 to the column where the data doesnt apply, but it will still show up in the tooltip. Is there a way around it? Am I just doing it wrong?

    • This topic was modified 4 years, 1 month ago by sebaulloa1. Reason: spelling
    #31982

    @sebaulloa1,

    You can use contentFormatter to filter the content of toolTip according to your requirement. Please take a look at this JSFiddle for an example on the same.


    Shashi Ranjan
    Team CanvasJS

    #31985

    Awesome!
    Thank you Shashi!
    you rock

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

You must be logged in to reply to this topic.