Permalink
Browse files

New test: multi-line graph without fill

  • Loading branch information...
1 parent ffc5cc5 commit 13211dce721a3af22de67eda651e593321e20b64 Martin Kleppmann committed Apr 25, 2009
Showing with 32 additions and 0 deletions.
  1. +32 −0 tests/multiline.html
View
@@ -0,0 +1,32 @@
+<!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: Multi-Line Chart Test</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link href="tests.css" media="screen" rel="Stylesheet" type="text/css" />
+ <script src="../PlotKit/MochiKit.js" type="text/javascript"></script>
+ <script src="../PlotKit/excanvas.js" type="text/javascript"></script>
+ <script src="../PlotKit/PlotKit.js" type="text/javascript"></script>
+</head>
+
+
+<body>
+ <div id="body">
+ <h2>Axis Test</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]],
+ [[0, 0], [1, 1], [2, 4], [3, 8], [4, 7], [5, 8]],
+ [[0, 1], [1, 0], [2, 3], [3, 3], [4, 9], [5, 6]]
+ ];
+ var options = MochiKit.Base.merge(officeBlack(), {shouldFill: false, colorScheme: basePrimaryColors()});
+ var plotter = EasyPlot("line", options, $("example"), data);
+ </script>
+ </div>
+
+ <div class="footer"><a href="http://www.liquidx.net/plotkit/">PlotKit</a></div>
+</div>
+</body></html>

0 comments on commit 13211dc

Please sign in to comment.