0
I have the Code:
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['bar']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Ano', 'Total', 'Mestrado', 'Doutorado'],
['2014', 1000, 400, 200],
['2015', 1170, 460, 250],
['2016', 660, 120, 300],
['2017', 1030, 540, 350]
]);
var options = {
chart: {
title: 'Mestrados e Doutorados do IG',
subtitle: 'Total, Mestrados e Doutorados',
},
bars: 'horizontal'
};
var chart = new google.charts.Bar(document.getElementById('barchart_material'));
chart.draw(data, options);
}
</script>
And it has the White Background, I wanted to change to the color #EEE. I’ve tried backgroundColor: '#EEE'
in options , but with this graph was not (I got with Pie).
It worked first, thank you!
– wellington.silverio