Add thousand separator to the value in Widget Customization

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

1 Like

Hello Riwim,

Please use the below mentioned script to format the value of card widget with thousand separator:

  var widgetText  = $("#widget-value")[0].innerHTML 
  widgetText = d3.format(",")(widgetText);
$("#widget-value")[0].innerHTML  = widgetText

Thank You
Team Helical