1

I used dollar sign to have a prefix in dollar but my problem is i need it to be in GBP/british pound like this "£". how can i do this? thanks

var data2 = new google.visualization.DataTable();
var formatted = new google.visualization.NumberFormat({prefix: '$'});
data2.addColumn('string', 'Company');
data2.addColumn('number', 'Amount');
4

1 回答 1

6

您需要使用 javascript \u 后跟 unicode 字符的十六进制代码。

在这种情况下 \u00A3

于 2012-10-26T20:57:21.333 回答