Numeral JS custom formatter in TSVB


(Shubham Mahajan) #1

Hi guys,
Here in metric tab of Visual Builder (TSVB), i want to return String on the basis of the returned metric using numeral js in custom formatter. Please help!!!
This is what I'm trying to do -> When passed metric is 0, return this string or else other string. Is it possible to do that??


(Nathan Reese) #2

The Format String input allows users to specify a numeral.js format string that can be used to format the number. The format string is not code and does not support if/else logic.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.