Sha256: c3cd31accb9943a6c3a396b22f1a04704f6182965ea4fb5b7f31f7dd7a44ab65
Contents?: true
Size: 1.79 KB
Versions: 4
Compression:
Stored size: 1.79 KB
Contents
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>PlotKit: X Label Demo</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link href="/css/page.css" media="screen" rel="Stylesheet" type="text/css" /> <link href="tests.css" media="screen" rel="Stylesheet" type="text/css" /> <script src="/js/mochi/MochiKit.js" type="text/javascript"></script> <script src="/js/plotkit-svn/excanvas.js" type="text/javascript"></script> <script src="/js/plotkit-svn/Base.js" type="text/javascript"></script> <script src="/js/plotkit-svn/Layout.js" type="text/javascript"></script> <script src="/js/plotkit-svn/Canvas.js" type="text/javascript"></script> <script src="/js/plotkit-svn/SweetCanvas.js" type="text/javascript"></script> </head> <body> <div id="body"> <h2>Label Demo</h2> <div style="margin: 0 auto 0 auto; width: 500px;"> <div><canvas id="chart" width="500" height="300"></canvas></div> <script type="text/javascript"> var xTicks = [{label: "13:00", v: 0}, {label: "14:00", v: 1}, {label: "14:00", v: 2}, {label: "15:00", v: 3}, {label: "16:00", v: 4}]; var layout = new Layout("line", {"xTicks": xTicks} ); layout.addDataset("yay", [[0, 0], [1, 1], [2, 4], [3, 9], [4, 16]]); layout.addDataset("dataset2", [[0, 4], [1, 3], [2, 3], [3, 1], [4, 8]]); layout.evaluate(); var chart = new SweetCanvasRenderer($("chart"), layout); chart.render(); </script> </div> <div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div> </div> </body></html>
Version data entries
4 entries across 4 versions & 1 rubygems