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.

setting-options.html 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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>There are plenty of options you can set to control the precise
  15. looks of your plot. You can control the axes, the legend, the
  16. default graph type, the look of grid, etc.</p>
  17. <p>The idea is that Flot goes to great lengths to provide <b>sensible
  18. defaults</b> which you can then customize as needed for your
  19. particular application. If you've found a use case where the
  20. defaults can be improved, please don't hesitate to give your
  21. feedback.</p>
  22. <script id="source" language="javascript" type="text/javascript">
  23. $(function () {
  24. var d1 = [];
  25. for (var i = 0; i < Math.PI * 2; i += 0.25)
  26. d1.push([i, Math.sin(i)]);
  27. var d2 = [];
  28. for (var i = 0; i < Math.PI * 2; i += 0.25)
  29. d2.push([i, Math.cos(i)]);
  30. var d3 = [];
  31. for (var i = 0; i < Math.PI * 2; i += 0.1)
  32. d3.push([i, Math.tan(i)]);
  33. $.plot($("#placeholder"), [
  34. { label: "sin(x)", data: d1},
  35. { label: "cos(x)", data: d2},
  36. { label: "tan(x)", data: d3}
  37. ], {
  38. series: {
  39. lines: { show: true },
  40. points: { show: true }
  41. },
  42. xaxis: {
  43. ticks: [0, [Math.PI/2, "\u03c0/2"], [Math.PI, "\u03c0"], [Math.PI * 3/2, "3\u03c0/2"], [Math.PI * 2, "2\u03c0"]]
  44. },
  45. yaxis: {
  46. ticks: 10,
  47. min: -2,
  48. max: 2
  49. },
  50. grid: {
  51. backgroundColor: { colors: ["#fff", "#eee"] }
  52. }
  53. });
  54. });
  55. </script>
  56. </body>
  57. </html>