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 dataWest = [{ |
---|
24 | Device: 'Desktops', |
---|
25 | Count: 5 |
---|
26 | }, { |
---|
27 | Device: 'Notebooks', |
---|
28 | Count: 3 |
---|
29 | }, { |
---|
30 | Device: 'Tablets', |
---|
31 | Count: 7 |
---|
32 | }], |
---|
33 | |
---|
34 | dataEast = [{ |
---|
35 | Device: 'Desktops', |
---|
36 | Count: 1 |
---|
37 | }, { |
---|
38 | Device: 'Notebooks', |
---|
39 | Count: 6 |
---|
40 | }, { |
---|
41 | Device: 'Tablets', |
---|
42 | Count: 8 |
---|
43 | }], |
---|
44 | |
---|
45 | dataCentral = [{ |
---|
46 | Device: 'Desktops', |
---|
47 | Count: 2 |
---|
48 | }, { |
---|
49 | Device: 'Notebooks', |
---|
50 | Count: 4.5 |
---|
51 | }, { |
---|
52 | Device: 'Tablets', |
---|
53 | Count: 2.5 |
---|
54 | }]; |
---|
55 | |
---|
56 | |
---|
57 | |
---|
58 | |
---|
59 | $("#wijbarchart").wijbarchart({ |
---|
60 | seriesList: [{ |
---|
61 | dataSource: dataWest, |
---|
62 | label: "West", |
---|
63 | legendEntry: true, |
---|
64 | data: { x: { bind: "Device" }, y: { bind: "Count"} } |
---|
65 | }, { |
---|
66 | dataSource: dataEast, |
---|
67 | label: "East", |
---|
68 | legendEntry: true, |
---|
69 | data: { x: { bind: "Device" }, y: { bind: "Count"} } |
---|
70 | }, { |
---|
71 | dataSource: dataCentral, |
---|
72 | label: "Central", |
---|
73 | legendEntry: true, |
---|
74 | data: { x: { bind: "Device" }, y: { bind: "Count"} } |
---|
75 | }] |
---|
76 | }); |
---|
77 | |
---|
78 | |
---|
79 | }); |
---|
80 | </script> |
---|
81 | </head> |
---|
82 | <body class="demo-single"> |
---|
83 | <div class="container"> |
---|
84 | <div class="header"> |
---|
85 | <h2> |
---|
86 | Overview</h2> |
---|
87 | </div> |
---|
88 | <div class="main demo"> |
---|
89 | <!-- Begin demo markup --> |
---|
90 | <div id="wijbarchart" class="ui-widget ui-widget-content ui-corner-all" style="width: 756px; height: 475px"> |
---|
91 | </div> |
---|
92 | <!-- End demo markup --> |
---|
93 | <div class="demo-options"> |
---|
94 | <!-- Begin options markup --> |
---|
95 | <!-- End options markup --> |
---|
96 | </div> |
---|
97 | </div> |
---|
98 | <div class="footer demo-description"> |
---|
99 | |
---|
100 | </div> |
---|
101 | </div> |
---|
102 | </body> |
---|
103 | </html> |
---|