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

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

Initial release

File size: 2.1 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: Image Plots</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 language="javascript" type="text/javascript" src="../../jquery.flot.image.js"></script>
11        <script type="text/javascript">
12
13        $(function() {
14
15                var data = [[["hs-2004-27-a-large-web.jpg", -10, -10, 10, 10]]];
16
17                var options = {
18                        series: {
19                                images: {
20                                        show: true
21                                }
22                        },
23                        xaxis: {
24                                min: -8,
25                                max: 4
26                        },
27                        yaxis: {
28                                min: -8,
29                                max: 4
30                        }
31                };
32
33                $.plot.image.loadDataImages(data, options, function () {
34                        $.plot("#placeholder", data, options);
35                });
36
37                // Add the Flot version string to the footer
38
39                $("#footer").prepend("Flot " + $.plot.version + " &ndash; ");
40        });
41
42        </script>
43</head>
44<body>
45
46        <div id="header">
47                <h2>Image Plots</h2>
48        </div>
49
50        <div id="content">
51
52                <div class="demo-container" style="width:600px;height:600px;">
53                        <div id="placeholder" class="demo-placeholder"></div>
54                </div>
55
56                <p>The Cat's Eye Nebula (<a href="http://hubblesite.org/gallery/album/nebula/pr2004027a/">picture from Hubble</a>).</p>
57
58                <p>With the image plugin, you can plot static images against a set of axes. This is for useful for adding ticks to complex prerendered visualizations. Instead of inputting data points, you specify the images and where their two opposite corners are supposed to be in plot space.</p>
59
60                <p>Images represent a little further complication because you need to make sure they are loaded before you can use them (Flot skips incomplete images). The plugin comes with a couple of helpers for doing that.</p>
61
62        </div>
63
64        <div id="footer">
65                Copyright &copy; 2007 - 2014 IOLA and Ole Laursen
66        </div>
67
68</body>
69</html>
Note: See TracBrowser for help on using the repository browser.