source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/barchart/dataSourceSereisShared.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>BarChart - 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.wijbarchart.js" type="text/javascript"></script>
20    <script id="scriptInit" type="text/javascript">
21        $(document).ready(function () {
22
23                var data = [{
24                        Device: 'Desktops',
25                        Count: 5,
26                        Price: 900
27                }, {
28                        Device: 'Notebooks',
29                        Count: 3,
30                        Price: 700
31                }, {
32                        Device: 'Tablets',
33                        Count: 7,
34                        Price: 500
35                }];
36
37
38                $("#wijbarchart").wijbarchart({
39                        dataSource: data,
40                        data: { x: { bind: "Device"} },
41                        seriesList: [{
42                                        label: "west",
43                                legendEntry: true,
44                                data: { y: { bind: "Count"} }
45                        }, {
46                                        label: "east",
47                                legendEntry: true,
48                                data: { y: { bind: "Price"} }
49                        }]
50                });
51
52        });
53    </script>
54</head>
55<body class="demo-single">
56    <div class="container">
57        <div class="header">
58            <h2>
59                Overview</h2>
60        </div>
61        <div class="main demo">
62            <!-- Begin demo markup -->
63            <div id="wijbarchart" class="ui-widget ui-widget-content ui-corner-all" style="width: 756px; height: 475px">
64            </div>
65            <!-- End demo markup -->
66            <div class="demo-options">
67                <!-- Begin options markup -->
68                <!-- End options markup -->
69            </div>
70        </div>
71        <div class="footer demo-description">
72         
73        </div>
74    </div>
75</body>
76</html>
Note: See TracBrowser for help on using the repository browser.