I am starting with Google chart and I have allready many thinga but I need
to change the color of an element e I cant get.
Follow my code:
<script type="text/javascript"
src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('visualization', '1', {packages: ['corechart']});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Ano', 'Style');
data.addColumn('number', '1 Ponto');
data.addColumn({type: 'string', role: 'annotation'});
data.addColumn('number', '2 Pontos');
data.addColumn({type: 'string', role: 'annotation'});
data.addColumn('number', '3 Pontos');
data.addColumn({type: 'string', role: 'annotation'});
data.addColumn('number', '4 Pontos');
data.addColumn({type: 'string', role: 'annotation'});
data.addColumn('number', '5 Pontos');
data.addColumn({type: 'string', role: 'annotation'});
data.addRows([
['2010', 22, '22', 1, '1', 11, '11', 11, '11', 22, '22'],
['2011', 14, '14', 20, '20', 21, '21', 11, '11', 22, '22'],
['2012', 23, '23', 32, '32', 11, '11', 11, '11', 22, '22'],
]);
var options = {
annotations: {
alwaysOutside: true,
textStyle: {
fontSize: 10,
color: '#000',
auraColor: 'none'
}
},
width: 1000,
height: 563,
hAxis: {
title: 'Ano',
},
vAxis: {
title: 'Qtd de Pessoas'
}
};
var chart = new google.visualization.ColumnChart(
document.getElementById('ex5'));
chart.draw(data, options);
}
</script>
Anyone can help me ?
Tks
Ricardo Costa
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.