Hey Guys, I'm using the google chart API for the first time.
I'm trying to build a chart without any labels on it and each bar has to
have a different color.
The current code I got, trying to do it in the Code Playground is like this:
function drawVisualization() {
var data = new google.visualization.DataTable();
data.addColumn('string', '');
data.addColumn('number', 'Numbers');
data.addRows(5);
data.setValue(0, 1, 1000);
data.setValue(1, 1, 1170);
data.setValue(2, 1, 660);
data.setValue(3, 1, 1030);
data.setValue(4, 1, 1030);
var chart = new google.visualization.ColumnChart(document.getElementById(
'visualization'));
chart.draw(data, {width: 400, height: 240, legend: 'none', gridlineColor:
'#fff',
hAxis: {},
vAxis: {baselineColor: '#ccc'}
});
}
Well, I can't get rid of the numbers on the vertical axis and I need each
column to be of a different color.
Just to make it clear, I don't need labels because the graphic "legend" will
be somewhere else, and the colors will be the visual explanation of the
graphic.
Thanks for the help guys,
Filipe La Ruina
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-visualization-api/-/z2Fmuaqi_iMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.