728
| <![CDATA[<script>google.charts.load('current', {
'packages': ['corechart', 'bar']
});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data1 = google.visualization.arrayToDataTable([
['Laboratórios', 'Números de vacinas por laboratório'],
['Butantan (Coronavac)', 2258],
['BioNTech (Pfizer)', 2037],
['Fio Cruz (Astrazeneca)', 1950],
['Johnson & Johnson (Janssen)', 29],
]);
var options1 = {
is3D: false,
fontSize: 19,
fontName: 'var(--fontExtratLight)',
pieHole: 0.6,
pieStartAngle: 1,
backgroundColor: 'transparent',
sliceVisibilityThreshold: 0,
showLables: 'true',
pieSliceText: 'percentage',
pieSliceTextStyle: {
color: '#000000',
fontSize: 10
},
legend: {
position: 'right',
alignment: 'left'
},
chartArea: {
right: 48,
top: 12,
bottom: 12,
width: '100%',
height: '100%'
},
colors: ['#01818E', '#0096A7', '#00838D', '#4DD0E2', '#006656', '#00796A', '#006B5E', '#26A59A', '#2E7B35', '#398E3D', '#297E2B', '#66BB6A'],
tooltip: {
textStyle: {
bold: true,
color: '#3E3E3E',
fontSize: 13,
fontName: 'MyriadPro-Bold'
},
showColorCode: true,
isHtml: true,
ignoreBounds: true,
text: 'both',
},
};
var resto = 2674 - 2579;
var data2 = google.visualization.arrayToDataTable([
['População', 'Populacao'],
['População total (2674)', ''],
['População vacinada (2579)', 2579],
['População não vacinada (' + resto + ')', 2674 - 2579]
]);
var options2 = {
is3D: false,
fontSize: 19,
fontName: 'var(--fontExtratLight)',
pieHole: 0.6,
pieStartAngle: 1,
backgroundColor: 'transparent',
sliceVisibilityThreshold: 0,
showLables: 'true',
pieSliceText: 'percentage',
pieSliceTextStyle: {
color: '#000000',
fontSize: 10
},
legend: {
position: 'right',
alignment: 'left'
},
chartArea: {
right: 48,
top: 12,
bottom: 12,
width: '100%',
height: '100%'
},
colors: ['#01818E', '#2E7B35', '#66BB6A'],
tooltip: {
textStyle: {
color: '#3E3E3E',
fontSize: 13,
fontName: 'MyriadPro-Bold'
},
showColorCode: true,
isHtml: true,
ignoreBounds: true,
text: 'both',
},
};
var chart1 = new google.visualization.PieChart(document.getElementById('piechart'));
chart1.draw(data1, options1);
var chart2 = new google.visualization.PieChart(document.getElementById('piechart2'));
chart2.draw(data2, options2);
}</script>]]>
|
834
| <![CDATA[<script>google.charts.load('current', {
packages: ['corechart', 'bar']
});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['GRUPO', '1ª DOSE', {
role: 'annotation'
}, '2ª DOSE', {
role: 'annotation'
}, '3ª DOSE', {
role: 'annotation'
}, '4ª DOSE', {
role: 'annotation'
}, '5ª DOSE', {
role: 'annotation'
}, 'DOSE ÚNICA', {
role: 'annotation'
}],
['DOSE PEDIÁTRICA', 124, '124', 0, '0', 0, '0', 0, '0', 0, '0', 0, '0'],
['POPULAÇÃO GERAL', 2455, '2455', 2480, '2480', 1339, '1339', 0, '0', 0, '0', 0, '0'],
]);
var options = {
fontName: 'var(--fontExtratLight)',
fontSize: 15,
chartArea: {
fontName: 'var(--fontExtratLight)',
width: '50%',
height: 200 - 50
},
hAxis: {
maxValue: 0
},
bar: {
groupWidth: '85%',
},
hAxis: {
baselineColor: 'transparent',
minValue: null,
ticks: []
},
legend: {
alignment: 'start',
position: 'top'
},
colors: ['#01818E', '#0096A7', '#006B5E', '#297E2B'],
backgroundColor: 'transparent',
annotations: {
stem: {
color: 'transparent',
length: 7
},
textStyle: {
fontName: 'var(--fontExtratLight)',
color: '#3E3E3E'
}
},
height: 200,
};
var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
chart.draw(data, options);
}</script>]]>
|