scrawl-canvas
Version:
Version 8.9.4 - 19 Nov 2022
63 lines (48 loc) • 1.93 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Demo Modules 002</title>
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/tests.css" rel="stylesheet" />
<style>
canvas {
margin: 0 auto 1em;
}
.centered {
text-align: center;
margin-bottom: 1em;
}
</style>
</head>
<body>
<h1><a href="index.html">Scrawl-canvas v8</a> - Modules test 002</h1>
<h2>Spiral charts - after the <a href="https://observablehq.com/@yurivish/seasonal-spirals">Seasonal Spirals</a> article by Yuri Vishnevsky</h2>
<div class="centered">Show views of the Wikipedia article on <input type="text" name="wikipedia-page" id="wikipedia-page" value="Cat" /> <button id="page-request">Go!</button></div>
<canvas
id="mycanvas"
width="400"
height="400"
data-scrawl-canvas
></canvas>
<p id="reportmessage"></p>
<div class="testinfo">
<h4>Test purpose</h4>
<p>The key takeaways from this Demo test is that we:</p>
<ul>
<li>Collect and manipulate data from a remote 3rd party API;</li>
<li>Build a complex graphic of that data in a temporary Cell;</li>
<li>Grab an image of the results and use it as an asset for a single Picture entity; and</li>
<li>Destroy the Cell and all of its associated entitys, to keep the page working at 60fps.</li>
</ul>
<p>The Demo is interactive - we can view the page views data for the past three years for <b>any</b> English Wikipedia page.</p>
<p><a href="../docs/demo/modules-002.html">Annotated code</a></p>
<ul>
<li><a href="../docs/demo/modules/wikipedia-views-spiral-chart.html">Wikipedia views spiral chart module</a></li>
</ul>
</div>
<script src="modules-002.js" type="module"></script>
</body>
</html>