<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="#" />
    
    <title>RestAPI - Infosys (InfoWS v3)</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="/static/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">

    <!-- Bootstrap core JavaScript -->
    <script src="/static/js/jquery-3.5.1.slim.min.js"></script>
    <script src="/static/js/popper.min.js"></script>
    <script src="/static/js/bootstrap.bundle.min.js"></script>

    <script src="/static/js/plotly-latest.min.js"></script>

</head>

<body>
    {% include 'header/header.html' %}

    <div style="padding-top: 65px;margin: auto;">
        <div id="visual" class="m-2"></div>
    </div>

    <script type="text/javascript">
        var errors = {
            x: {{dates}},
            y: {{errors}},
            mode: 'lines+markers',
            name: 'Errors',
            line: {
                color: 'rgb(219, 64, 82)'
            }
        };

        var requests = {
            x: {{dates}},
            y: {{requests}},
            mode: 'lines+markers',
            name: 'Requests',
            line: {
                color: 'rgb(0, 128, 0)'
            }
        };

        var layout = {
            title:'Requests/Errors - Last 15 days'
        };
        var data = [requests, errors];
        Plotly.newPlot('visual', data, layout, {displayModeBar: false});
    </script>
</body>

</html>