I've been working on a project that involves the Google Visualization API. I successfully formatted the y-axis values of my chart to display in currency using vAxis: {format: 'currency'}
in the options
. However, I'm struggling to figure out how to remove the cent values.
You can check out what my chart looks like here: Chart
Below are the options
I'm currently using:
var options = {
chartArea: {width: '90%', height: '80%'},
vAxis: {format: 'currency', ticks: [0, 20000, 40000, 60000]},
colors: ['#4285f4'],
legend: {position: 'none'}
};
On the vAxis
, it's displaying marks at $0.00, $20,000.00, $40,000.00, and $60,000.00. I'm aiming to have it show marks at $0, $20,000, $40,000, and $60,000 instead.
Any assistance would be greatly appreciated. Thank you!