long shot, but anyone used googleapi for charts? s...
# suitescript
m
long shot, but anyone used googleapi for charts? struggling to get this working. the percentage works our correct but the graph doesn't adjust
message has been deleted
m
I think you want
Copy code
var chart = "<img src=\"<https://chart.googleapis.com/chart?chs=350x100&chd=t>:" + credit + "," + balance + "&cht=p3&chl=Balance (%) - "+ credit +"|Credit (%) - "+(100-credit)+"\">";
I.e.
chd=t:" + balance + "," + balance
should be ``chd=t:" + credit + "," + balance`
m
wow, amazing - thanks @michoel!