I'm trying to add currency format in google charts and angularjs
Google charts display Money not Percentages
var formatter = new google.visualization.NumberFormat({ prefix: '$' }); formatter.format(data, 1);
var options = { pieSliceText: 'value' };
how to add above code in the function below ?
$scope.jkchart = function(){
$scope.chartObject = {};
$scope.chartObject.data = {"cols": [
{id: "t", label: "Topping", type: "string"},
{id: "s", label: "Slices", type: "number"}
], "rows": [
{c: [
{v: "Mushrooms"},
{v: 3},
]},
{c: [
{v: "Olives"},
{v: 31}
]},
{c: [
{v: "Zucchini"},
{v: 5},
]}
]};
$scope.chartObject.type = "PieChart";
$scope.chartObject.options = {
'title': 'How Much Pizza I Ate Last Night'
};
};