Comments

2 comments

  • Avatar
    Barry Gaffey (Edited )

    Hi Graeme Laird,

    Yeah, you can accomplish it via JavaScript - not sure how you wanted it to look but here's how you could make the value appear in that format within the data point tooltip of the column chart widget i.e. the box that appears when you hover over the columns.

     

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

    if (arg.context.pointScope.y > 0) {
    arg.context.points[0].value = "+" + arg.context.points[0].value;
    }
    });

    This is a widget level script for the column chart widget you wanted this formatting to be applied to.

     

    1
    Comment actions Permalink
  • Avatar
    Graeme Laird

    Perfect!  Thanks, Barry!

    1
    Comment actions Permalink

Please sign in to leave a comment.