668
| <![CDATA[<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data1 = new google.visualization.DataTable();
data1.addColumn('string', 'MÊS');
data1.addColumn('number', '%');
data1.addRows([
['JAN', 14.9],
['FEV', 9.7],
['MAR', 12.2],
['ABR', 11.4],
['MAI', 13.0],
['JUN', 12.9],
['JUL', 13.9],
['AGO', 12.1],
]);
var options1 = { title:'VARIAÇÃO MENSAL TOTAL', legend:{position:'bottom'} };
var chart1 = new google.visualization.LineChart(document.getElementById('grafico_vencimentos'));
chart1.draw(data1, options1);
var data2 = new google.visualization.DataTable();
data2.addColumn('string', 'MÊS');
data2.addColumn('number', '%');
data2.addRows([
['JAN', 16.9],
['FEV', 10.3],
['MAR', 12.7],
['ABR', 12.3],
['MAI', 11.8],
['JUN', 11.7],
['JUL', 13.4],
['AGO', 10.9],
]);
var options2 = { title:'VARIAÇÃO MENSAL TOTAL', legend:{position:'bottom'} };
var chart2 = new google.visualization.LineChart(document.getElementById('grafico_descontos'));
chart2.draw(data2, options2);
var data3 = new google.visualization.DataTable();
data3.addColumn('string', 'MÊS');
data3.addColumn('number', '%');
data3.addRows([
['JAN', 14.5],
['FEV', 9.6],
['MAR', 12.1],
['ABR', 11.3],
['MAI', 13.2],
['JUN', 13.0],
['JUL', 13.9],
['AGO', 12.3],
]);
var options3 = { title:'VARIAÇÃO MENSAL TOTAL', legend:{position:'bottom'} };
var chart3 = new google.visualization.LineChart(document.getElementById('grafico_liquido'));
chart3.draw(data3, options3);
}
</script>]]>
|
851
| <![CDATA[<script type="text/javascript">
$(function(){
$('.buttons').on('click', 'a', function(){
var id = $(this).attr('data-id');
$('#table_vencimentos, #table_descontos, #table_liquido, #grafico_vencimentos, #grafico_descontos, #grafico_liquido').hide();
$(id).fadeIn();
$('.buttons a').removeClass('btn-primary').addClass('btn-default');
$(this).removeClass('btn-default').addClass('btn-primary');
});
});
window.onload = function(){
$('#table_descontos, #table_liquido, #grafico_descontos, #grafico_liquido').hide();
}
</script>]]>
|