source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/linechart/dataSource.html @ 604

Last change on this file since 604 was 604, checked in by vmipsl, 12 years ago

images

File size: 2.4 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4        <title>LineChart - Overview</title>
5        <meta charset="utf-8" />
6        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7        <meta name="description" content="%description%" />
8        <meta name="keywords" content="" />
9        <meta name="author" content="ComponentOne" />
10       
11        <link href="../../themes/rocket/jquery-wijmo.css" rel="stylesheet" type="text/css" />
12       
13        <script src="../../external/jquery-1.8.0.min.js" type="text/javascript"></script>
14        <script src="../../external/jquery-ui-1.8.23.custom.min.js" type="text/javascript"></script>
15        <script src="../../external/globalize.min.js" type="text/javascript"></script>
16        <script src="../../external/raphael-min.js" type="text/javascript"></script>
17        <script src="../../wijmo/jquery.wijmo.raphael.js" type="text/javascript"></script>
18        <script src="../../wijmo/jquery.wijmo.wijchartcore.js" type="text/javascript"></script>
19        <script src="../../wijmo/jquery.wijmo.wijlinechart.js" type="text/javascript"></script>
20        <script id="scriptInit" type="text/javascript">
21        $(document).ready(function () {
22
23                var data = [{
24                    Date: new Date('10/1/2010 11:48:00'),
25                        Count: 5
26                }, {
27                    Date: new Date('10/2/2010 11:48:00'),
28                        Count: 3
29                }, {
30                    Date: new Date('10/3/2010 11:48:00'),
31                        Count: 7
32                }];
33
34
35                $("#wijlinechart").wijlinechart({
36                                dataSource: data,
37                        axis: {
38                                y: {
39                                        text: "Total Hardware"
40
41                                },
42                                x: {
43                                        text: ""
44                                }
45                        },
46                        hint: {
47                                content: function () {
48                                        return this.y;
49                                }
50                        },
51                        header: {
52                                text: "Hardware Distribution"
53                        },
54                        seriesList: [{
55                                legendEntry: true,
56                                        label: "east",
57                                data: { x: { bind: "Date" }, y: { bind: "Count"} }
58                        }]
59                });
60        });
61        </script>
62</head>
63<body class="demo-single">
64        <div class="container">
65                <div class="header">
66                        <h2>
67                                Overview</h2>
68                </div>
69                <div class="main demo">
70                        <!-- Begin demo markup -->
71                        <div id="wijlinechart" class="ui-widget ui-widget-content ui-corner-all" style="width: 756px; height: 475px; ">
72                        </div>
73                        <!-- End demo markup -->
74                        <div class="demo-options">
75                                <!-- Begin options markup -->
76                                <!-- End options markup -->
77                        </div>
78                </div>
79                <div class="footer demo-description">
80                        <p>
81                        </p>
82                </div>
83        </div>
84</body>
85</html>
Note: See TracBrowser for help on using the repository browser.