<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SingleBarGraphDTBlack.aspx.vb" Inherits="DashboardContabilidade.SingleBarGraphDTBlack" %>

<!DOCTYPE html>


<html>
<head>
    <style>
        #print {
            float: right;
            font-family: Verdana;
            color: #0B62A4;
            font-size: 10px;
            right: 10px;
            bottom: 0;
            position: fixed;
            cursor: pointer;
        }
    </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 = {
                isStacked: true,
                tooltip: { textStyle: {fontSize: 10 } },
                annotations: {
                    textStyle: { color: 'white' }
                },
                backgroundColor: { fill: '#cde6f2' },
                //'title': '<%= Titutlo%>',
                //titleTextStyle: { color: 'black', alignment: 'center', fontSize: '11px'},
                titlePosition: 'none',
                <%= cores%>,
                hAxis: { baselineColor: '#CCCCCC', minValue: 0, textStyle: { fontSize: 10} },
                vAxis: { baselineColor: '#CCCCCC', minValue: 0, textStyle: { fontSize: 10} },
                legend: {textStyle: {color: 'black', fontSize: 10, fontName: 'Arial'}},
                chartArea: {right: 120, left: 49 }
            };

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

<body style="overflow:hidden;">
    <center>
        <h2 style="font-size: 11px!important; font-family: Arial!important; margin-bottom: 0rem!important"><%= Titutlo%></h2>
        <div id="chart_div" style="width:280px; height:180px"></div>
    </center>
</body>
</html>
