304
| <![CDATA[<script>
$(function () {
google.load("visualization", "1.1", {packages:['corechart'],callback: exibeRelatorioProtocolo});
$(window).resize(function() {
exibeRelatorioProtocolo();
});
});
function exibeRelatorioProtocolo(){
exibeRelatorioProtocoloAno();
exibeRelatorioProtocoloMes();
exibeRelatorioTipoProtocoloAno();
exibeRelatorioTipoProtocoloMes();
}
function exibeRelatorioProtocoloAno() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Protocolos');
data.addColumn('number', 'Quntidade');
var slices = new Array();
data.addRow(['Abertos', 0]);
slices[0] = {color: '#698197'}
data.addRow(['Em Andamento', 0]);
slices[1] = {color: '#e5be7b'}
data.addRow(['Concluídos', 23]);
slices[2] = {color: '#5d8d59'}
var options = {
title: '',
slices: slices,
backgroundColor: 'none',
pieSliceBorderColor: 'none',
chartArea: {height: '80%',width:'90%'},
legend: { position: 'none' },
fontSize: '15'
};
var chart = new google.visualization.PieChart(document.getElementById('chartProtocoloAno'));
chart.draw(data, options);
}
function exibeRelatorioTipoProtocoloAno() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Protocolos');
data.addColumn('number', 'Quntidade');
var slices = new Array();
data.addRow(['Solicitações', 4]);
slices[0] = {color: '#006e1a'}
data.addRow(['Sugestões', 2]);
slices[1] = {color: '#5ae8ce'}
data.addRow(['Reclamações', 2]);
slices[2] = {color: '#8e551b'}
data.addRow(['Denúncias', 13]);
slices[3] = {color: '#9e7d7e'}
data.addRow(['Elogios', 0]);
slices[4] = {color: '#d41c73'}
data.addRow(['Outros', 2]);
slices[5] = {color: '#0081ff'}
var options = {
title: '',
slices: slices,
backgroundColor: 'none',
pieSliceBorderColor: 'none',
chartArea: {height: '80%',width:'90%'},
legend: { position: 'none' },
fontSize: '15'
};
var chart = new google.visualization.PieChart(document.getElementById('chartTipoProtocoloAno'));
chart.draw(data, options);
}
function exibeRelatorioProtocoloMes() {
var itens = new Array();
var arrayCores = new Array();
itens[0] = new Array();
itens[0][0] = 'Protocolos';
itens[0][1] = 'Abertos';
arrayCores.push('#698197');
itens[0][2] = 'Em Andamento';
arrayCores.push('#e5be7b');
itens[0][3] = 'Concluídos';
arrayCores.push('#5d8d59');
itens[0][4] = {type: 'number', role: 'annotation'};
itens[1] = new Array();
itens[1][0] = 'jan';
itens[1][1] = 0;
itens[1][2] = 0;
itens[1][3] = 0;
itens[1][4] = 0;
itens[2] = new Array();
itens[2][0] = 'fev';
itens[2][1] = 0;
itens[2][2] = 0;
itens[2][3] = 0;
itens[2][4] = 0;
itens[3] = new Array();
itens[3][0] = 'mar';
itens[3][1] = 0;
itens[3][2] = 0;
itens[3][3] = 0;
itens[3][4] = 0;
itens[4] = new Array();
itens[4][0] = 'abr';
itens[4][1] = 0;
itens[4][2] = 0;
itens[4][3] = 0;
itens[4][4] = 0;
itens[5] = new Array();
itens[5][0] = 'mai';
itens[5][1] = 0;
itens[5][2] = 0;
itens[5][3] = 1;
itens[5][4] = 1;
itens[6] = new Array();
itens[6][0] = 'jun';
itens[6][1] = 0;
itens[6][2] = 0;
itens[6][3] = 0;
itens[6][4] = 0;
itens[7] = new Array();
itens[7][0] = 'jul';
itens[7][1] = 0;
itens[7][2] = 0;
itens[7][3] = 0;
itens[7][4] = 0;
itens[8] = new Array();
itens[8][0] = 'ago';
itens[8][1] = 0;
itens[8][2] = 0;
itens[8][3] = 0;
itens[8][4] = 0;
itens[9] = new Array();
itens[9][0] = 'set';
itens[9][1] = 0;
itens[9][2] = 0;
itens[9][3] = 0;
itens[9][4] = 0;
itens[10] = new Array();
itens[10][0] = 'out';
itens[10][1] = 0;
itens[10][2] = 0;
itens[10][3] = 2;
itens[10][4] = 2;
itens[11] = new Array();
itens[11][0] = 'nov';
itens[11][1] = 0;
itens[11][2] = 0;
itens[11][3] = 1;
itens[11][4] = 1;
itens[12] = new Array();
itens[12][0] = 'dez';
itens[12][1] = 0;
itens[12][2] = 0;
itens[12][3] = 19;
itens[12][4] = 19;
var data = google.visualization.arrayToDataTable(itens);
var options = {
title: '',
//slices: slices,
backgroundColor: 'none',
chartArea: {height: '80%',width:'90%'},
colors: arrayCores,
legend: { position: 'none' },
fontSize: '15',
isStacked: true,
vAxis:{ maxValue: 20},
annotations: {
textStyle: {
color: 'black',
fontSize: 11,
},
alwaysOutside: true
}
};
var chart = new google.visualization.ColumnChart(document.getElementById('chartProtocoloMes'));
chart.draw(data, options);
}
function exibeRelatorioTipoProtocoloMes() {
var itens = new Array();
var arrayCores = new Array();
itens[0] = new Array();
itens[0][0] = 'Protocolos';
itens[0][1] = 'Solicitações';
arrayCores.push('#006e1a');
itens[0][2] = 'Sugestões';
arrayCores.push('#5ae8ce');
itens[0][3] = 'Reclamações';
arrayCores.push('#8e551b');
itens[0][4] = 'Denúncias';
arrayCores.push('#9e7d7e');
itens[0][5] = 'Elogios';
arrayCores.push('#d41c73');
itens[0][6] = 'Outros';
arrayCores.push('#0081ff');
itens[0][7] = {type: 'number', role: 'annotation'};
itens[1] = new Array();
itens[1][0] = 'jan';
itens[1][1] = 0;
itens[1][2] = 0;
itens[1][3] = 0;
itens[1][4] = 0;
itens[1][5] = 0;
itens[1][6] = 0;
itens[1][7] = 0;
itens[2] = new Array();
itens[2][0] = 'fev';
itens[2][1] = 0;
itens[2][2] = 0;
itens[2][3] = 0;
itens[2][4] = 0;
itens[2][5] = 0;
itens[2][6] = 0;
itens[2][7] = 0;
itens[3] = new Array();
itens[3][0] = 'mar';
itens[3][1] = 0;
itens[3][2] = 0;
itens[3][3] = 0;
itens[3][4] = 0;
itens[3][5] = 0;
itens[3][6] = 0;
itens[3][7] = 0;
itens[4] = new Array();
itens[4][0] = 'abr';
itens[4][1] = 0;
itens[4][2] = 0;
itens[4][3] = 0;
itens[4][4] = 0;
itens[4][5] = 0;
itens[4][6] = 0;
itens[4][7] = 0;
itens[5] = new Array();
itens[5][0] = 'mai';
itens[5][1] = 0;
itens[5][2] = 0;
itens[5][3] = 1;
itens[5][4] = 0;
itens[5][5] = 0;
itens[5][6] = 0;
itens[5][7] = 1;
itens[6] = new Array();
itens[6][0] = 'jun';
itens[6][1] = 0;
itens[6][2] = 0;
itens[6][3] = 0;
itens[6][4] = 0;
itens[6][5] = 0;
itens[6][6] = 0;
itens[6][7] = 0;
itens[7] = new Array();
itens[7][0] = 'jul';
itens[7][1] = 0;
itens[7][2] = 0;
itens[7][3] = 0;
itens[7][4] = 0;
itens[7][5] = 0;
itens[7][6] = 0;
itens[7][7] = 0;
itens[8] = new Array();
itens[8][0] = 'ago';
itens[8][1] = 0;
itens[8][2] = 0;
itens[8][3] = 0;
itens[8][4] = 0;
itens[8][5] = 0;
itens[8][6] = 0;
itens[8][7] = 0;
itens[9] = new Array();
itens[9][0] = 'set';
itens[9][1] = 0;
itens[9][2] = 0;
itens[9][3] = 0;
itens[9][4] = 0;
itens[9][5] = 0;
itens[9][6] = 0;
itens[9][7] = 0;
itens[10] = new Array();
itens[10][0] = 'out';
itens[10][1] = 0;
itens[10][2] = 0;
itens[10][3] = 0;
itens[10][4] = 2;
itens[10][5] = 0;
itens[10][6] = 0;
itens[10][7] = 2;
itens[11] = new Array();
itens[11][0] = 'nov';
itens[11][1] = 0;
itens[11][2] = 0;
itens[11][3] = 0;
itens[11][4] = 0;
itens[11][5] = 0;
itens[11][6] = 1;
itens[11][7] = 1;
itens[12] = new Array();
itens[12][0] = 'dez';
itens[12][1] = 4;
itens[12][2] = 2;
itens[12][3] = 1;
itens[12][4] = 11;
itens[12][5] = 0;
itens[12][6] = 1;
itens[12][7] = 19;
var data = google.visualization.arrayToDataTable(itens);
var options = {
title: '',
//slices: slices,
backgroundColor: 'none',
chartArea: {height: '80%',width:'90%'},
colors: arrayCores,
legend: { position: 'none' },
fontSize: '15',
isStacked: true,
vAxis:{ maxValue: 20},
annotations: {
textStyle: {
color: 'black',
fontSize: 11,
},
alwaysOutside: true
}
};
var chart = new google.visualization.ColumnChart(document.getElementById('chartTipoProtocoloMes'));
chart.draw(data, options);
}
</script>]]>
|