source: appstream-generator/contrib/setup/js_tmp/Flot/examples/basic-usage/index.html @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 1.5 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html>
3<head>
4        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5        <title>Flot Examples: Basic Usage</title>
6        <link href="../examples.css" rel="stylesheet" type="text/css">
7        <!--[if lte IE 8]><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        <script type="text/javascript">
11
12        $(function() {
13
14                var d1 = [];
15                for (var i = 0; i < 14; i += 0.5) {
16                        d1.push([i, Math.sin(i)]);
17                }
18
19                var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
20
21                // A null signifies separate line segments
22
23                var d3 = [[0, 12], [7, 12], null, [7, 2.5], [12, 2.5]];
24
25                $.plot("#placeholder", [ d1, d2, d3 ]);
26
27                // Add the Flot version string to the footer
28
29                $("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
30        });
31
32        </script>
33</head>
34<body>
35
36        <div id="header">
37                <h2>Basic Usage</h2>
38        </div>
39
40        <div id="content">
41
42                <div class="demo-container">
43                        <div id="placeholder" class="demo-placeholder"></div>
44                </div>
45
46                <p>You don't have to do much to get an attractive plot.  Create a placeholder, make sure it has dimensions (so Flot knows at what size to draw the plot), then call the plot function with your data.</p>
47
48                <p>The axes are automatically scaled.</p>
49
50        </div>
51
52        <div id="footer">
53                Copyright &copy; 2007 - 2014 IOLA and Ole Laursen
54        </div>
55
56</body>
57</html>
Note: See TracBrowser for help on using the repository browser.