Add Plus Sign to Column Chart Values
Currently using Sisense 7.2 and looking for a way to add a plus sign in front of values from a column chart, if the valus is > 0. I was able to apply them to my indicator widgets per the below document:
https://support.sisense.com/hc/en-us/community/posts/360001595094-Add-a-Plus-Sign-to-Indicator-Value
I assume using javascript similar to the above link?
-
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.
Please sign in to leave a comment.
Comments
2 comments