quickstart-easy.html
1.16 KB
<!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: Quickstart 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/PlotKit_Packed.js" type="text/javascript"></script>
</head>
<body>
<div id="body">
<h2>Quickstart EasyPlot Demo</h2>
<div id="example" style="margin: 0 auto 0 auto;" width="400" height="400"></div>
<script type="text/javascript">
var data = [[0,0], [1,2], [2,3], [3, 7], [4, 8], [5, 6]];
var plotter = EasyPlot("line", {}, $("example"), [data, "sample.txt"]);
</script>
</div>
<div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
</div>
</body></html>