PHP/JavaScript webapp to analyse spending habits
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

basic.html 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Flot Examples</title>
  6. <link href="layout.css" rel="stylesheet" type="text/css"></link>
  7. <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]-->
  8. <script language="javascript" type="text/javascript" src="../jquery.js"></script>
  9. <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script>
  10. </head>
  11. <body>
  12. <h1>Flot Examples</h1>
  13. <div id="placeholder" style="width:600px;height:300px;"></div>
  14. <p>Simple example. You don't need to specify much to get an
  15. attractive look. Put in a placeholder, make sure you set its
  16. dimensions (otherwise the plot library will barf) and call the
  17. plot function with the data. The axes are automatically
  18. scaled.</p>
  19. <script id="source" language="javascript" type="text/javascript">
  20. $(function () {
  21. var d1 = [];
  22. for (var i = 0; i < 14; i += 0.5)
  23. d1.push([i, Math.sin(i)]);
  24. var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
  25. // a null signifies separate line segments
  26. var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
  27. $.plot($("#placeholder"), [ d1, d2, d3 ]);
  28. });
  29. </script>
  30. </body>
  31. </html>