Hello Team Helical,
I have a card widget and the value is a large numerical value. I would like to add a thousand separator to the value. I am not able to find the option in Widget Customization. What script will work?
Thank You
Riwim
Hello Team Helical,
I have a card widget and the value is a large numerical value. I would like to add a thousand separator to the value. I am not able to find the option in Widget Customization. What script will work?
Thank You
Riwim
Hello Riwim,
Please use the below mentioned script to format the value of card widget with thousand separator:
hi_container.set("postExecution",function(c){
var widgetText = $("#widget-value")[0].innerHTML
widgetText = d3.format(",")(widgetText);
$("#widget-value")[0].innerHTML = widgetText
});
Thank You
Team Helical