Sha256: ec1b1eeab4572df61843423ee7e3232871acd4aa7de5bf626ec23230df080f22

Contents?: true

Size: 801 Bytes

Versions: 3

Compression:

Stored size: 801 Bytes

Contents

<html>
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">
        google.charts.load("current", {packages: ["corechart", "bar", "line"]});
        var drawChart = function (id, config) {
            var div = document.getElementById(id);
            div.style.width = config['style']['width'];
            div.style.height = config['style']['height'];
            var chart = eval("new " + config['type'] + "(div)");
            chart.draw(config['data'], config['options']);
        }
    </script>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript">
    google.charts.setOnLoadCallback(function () {
        drawChart('chart', ${CONFIG})
    })
</script>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
asciinurse-0.1.6 resources/googlecharts/converter/template.html
asciinurse-0.1.5 resources/googlecharts/converter/template.html
asciinurse-0.1.4 resources/googlecharts/converter/template.html