Use formatter to add plus sign in table visualization

7 views
Skip to first unread message

William

unread,
Dec 29, 2018, 2:42:57 AM12/29/18
to Google Visualization API
Is it possible to use a formatter to get plus signs to appear before positive values? It's a very simple matter to add a plus sign using "prefix", but how do I make that conditional on the number being positive?

William

unread,
Dec 29, 2018, 4:22:36 AM12/29/18
to Google Visualization API
I've worked this out now -- I needed to put this in options, which follows the same format (the ICU pattern set) I would use in Excel:

pattern: '+#0; -#0; 0'
Reply all
Reply to author
Forward
0 new messages