<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="GraficoBarrasPorAlunoEPorEscola.aspx.vb" Inherits="PessoalDashboard.GraficoBarrasPorAlunoEPorEscola" %>

<!DOCTYPE html>


<html>
<head>
    <style>
        #print {
            float: right;
            font-family: Verdana;
            color: #0B62A4;
            font-size: 10px;
            right: 10px;
            bottom: 0;
            position: fixed;
            cursor: pointer;
        }
        
        #chart_div{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0; 
            bottom: 0;
            left: 0; 
            right: 0;
            margin: auto;
        }
        
    </style>

    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
        //google.load("visualization", "1.1", { packages: ["corechart", "geochart"] });
        google.load("visualization", "1", { packages: ["corechart", "bar"] });
        google.setOnLoadCallback(drawChart);

        function drawChart() {
            var data = google.visualization.arrayToDataTable(<%= TheData%>);
            
            var options = {
                tooltip: { textStyle: {fontSize: 10 } },
                annotations: {
                    textStyle: { color: 'black' }
                },
                backgroundColor: 'transparent',
                'title': '<%= Titutlo%>',
                <%= Cor%>,
                seriesType: 'bars',
                series: {2: {type: 'line'}},
                titleTextStyle: { color: 'black'},
                chartArea: { left: '12%', top: '10%', height: '80%', width: '87%' },
                hAxis: { baselineColor: 'black', minValue: 0, textStyle: { fontSize: 10, color: 'black' } },
                vAxis: { baselineColor: 'black', minValue: 0, textStyle: { fontSize: 10, color: 'black' } },
                legend: {
                    position: 'none',
                    textStyle: { color: 'black' }
                }
            };

            var chart = new google.visualization.ComboChart(document.getElementById('chart_div'));
            //var chart = new google.visualization.BarChart(document.getElementById('chart_div'));
            chart.draw(data, options);
        };
    </script>
</head>

<body style="background-color:transparent; overflow:hidden;">
    <div id="chart_div"></div>
</body>
</html>
