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

<!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 = {
                tooltip: { textStyle: {fontSize: 10 } },
                annotations: {
                    textStyle: { color: 'white' }
                },
                backgroundColor: { fill: '#cde6f2' },
                //'title': '<%= Titutlo%>',
                //titleTextStyle: { color: 'black', alignment: 'center', fontSize: '11px'},
                titlePosition: 'none',
                <%= cores%>,
//                chartArea: { left: '23', top: '5', height: '75%', width: '70%' },
                hAxis: { baselineColor: '#CCCCCC', minValue: 0, textStyle: { fontSize: 10} },
                isStacked: false,
                vAxis: { baselineColor: '#CCCCCC', minValue: 0, textStyle: { fontSize: 10} },
                legend: {position: 'top', maxLines: 1, textStyle: {color: 'black', fontSize: 10, fontName: 'Arial'}},
                chartArea: {right: 20, left: 50 },
            };

            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>
