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

<!DOCTYPE html>

<html>
<head>
    <style>
        #print {
            float: right;
            font-family: Verdana;
            color: #0B62A4;
            font-size: 10px;
            right: 10px;
            bottom: 0;
            position: fixed;
            cursor: pointer;
        }
        table{
            margin: none!important;
        }
    </style>

    <!--Load the AJAX API-->
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
        google.load("visualization", "1", { packages: ["gauge"] });
        google.setOnLoadCallback(drawChart);
        
        function drawChart() {

            var data = google.visualization.arrayToDataTable(<%= TheEmptyData%>);

            var options = {
                redFrom: <%= MixRedLine%>, redTo: 100,
                backgroundColor: { fill: '#f8f9fa' },
                yellowFrom: 0, yellowTo: 0,
                minorTicks: 5,
                animation:{
                    duration: 5000,
                    easing: 'out'},
            };

            var chart = new google.visualization.Gauge(document.getElementById('chart_div'));
            chart.draw(data, options);
            
            //needed to make the annimation run
            var filledData = google.visualization.arrayToDataTable(<%= TheData%>);
            chart.draw(filledData, options);
        }
    </script>
</head>

<body style="overflow:hidden;">
    <span style="font-size:10px; color:White; font-family:Tahoma;" title="<%=TheTooltip%>"><%=Titutlo%></span>
    <center>
        <div id="chart_div" style="width:220px; height:120px";title="<%=TheTooltip%>"></div>
    </center>
</body>
</html>
