Cleanup Tooltip

Comments

5 comments

  • Avatar
    Iris Maessen

    I had a similar question a while ago (https://support.sisense.com/hc/en-us/community/posts/360023664734-Removing-information-from-the-tooltip-of-a-bar-chart ) and Pathfinder came up with the following script:

    widget.on("beforedatapointtooltip", function(w, args){
     args.template = args.template.replace("/ {{item.percentage}}""");
    });
    Perhaps it works for a piechart too?

     

    0
    Comment actions Permalink
  • Avatar
    Jessica Orlando

    Thanks Iris! Unfortunately this did not work for Pie Charts but I commented on that post too.

    Thanks!

    0
    Comment actions Permalink
  • Avatar
    Andrew Block

    How about this:

    widget.on("beforedatapointtooltip", function(w, args){

     args.template = args.template.replace("/ {{model.percent}}%""");

    });
    0
    Comment actions Permalink
  • Avatar
    Jessica Orlando

    This worked! Thank you Andrew!

    0
    Comment actions Permalink
  • Avatar
    Jonathan Sabah

    Is there any documentation describing all the possible elements per chart for the tooltip template? For example

    Pie Chart:

    • model.percent

    Column Chart

    • item.seriesNames
    • item.value
    • item.valueColor
    • item.showPercentage
    • item.percentage
    • model.plotBand
    • model.category

    etc...

    0
    Comment actions Permalink

Please sign in to leave a comment.