Sha256: ba7e2d7b3cd1f26f61de9be492e5e9495fe4030c8d2025d034fb8ff92728c99a
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 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"> function chartReady() { console.log('chart.ready'); } 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)"); google.visualization.events.addListener(chart, 'ready', chartReady); 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asciinurse-0.1.7 | resources/googlecharts/converter/template.html |