Chart % works but graph isn't reflecting %

30 views
Skip to first unread message

DMCS

unread,
Feb 19, 2020, 6:59:38 PM2/19/20
to Google Visualization API
The following code produces the right percentage but the graph isn't reflected - see the image

var chart = "<img src=\"https://chart.googleapis.com/chart?chs=350x100&chd=t:" + balance + "," + balance + "&cht=p3&chl=Balance (%) - "+ credit +"|Credit (%) - "+(100-credit)+"\">";

How should I construct the above code snippet to get the graph working?

Thanks!

graphJPG.JPG

DMCS

unread,
Feb 21, 2020, 3:46:56 AM2/21/20
to Google Visualization API
Got it fixed

SJW

unread,
Apr 15, 2020, 2:16:38 AM4/15/20
to Google Visualization API
For others stumbling across looking for solution, you can set the value and a display value:

{v: .75, f: '75 %'}
Reply all
Reply to author
Forward
0 new messages