source: ether_statistics/web/resources/js/Wijmo.2.2.2/Wijmo-Complete/development-bundle/samples/barchart/simple.html @ 649

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

wijmo

File size: 3.0 KB
Line 
1<!doctype html>
2<html lang="en">
3<head>
4    <title>BarChart - Simple chart</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            $("#wijbarchart").wijbarchart({
23                axis: {
24                    y: {
25                        text: "Total Hardware"
26                    },
27                    x: {
28                        text: ""
29                    }
30                },
31                hint: {
32                    content: function () {
33                        return this.data.label + '\n ' + this.y + '';
34                    }
35                },
36                header: {
37                    text: "Console Wars"
38                },
39                seriesList: [{
40                    label: "US",
41                    legendEntry: true,
42                    data: { x: ['PS3', 'XBOX360', 'Wii'], y: [12.35, 21.50, 30.56] }
43                }],
44                seriesStyles: [{
45                    fill: "#8ede43", stroke: "#7fc73c", opacity: 0.8
46                }],
47                seriesHoverStyles: [{
48                    "stroke-width": "1.5", opacity: 1
49                }]
50            });
51        });
52    </script>
53</head>
54<body class="demo-single">
55    <div class="container">
56        <div class="header">
57            <h2>
58                Simple Bar Chart</h2>
59        </div>
60        <div class="main demo">
61            <!-- Begin demo markup -->
62            <div id="wijbarchart" class="ui-widget ui-widget-content ui-corner-all" style="width: 756px; height: 475px">
63            </div>
64            <!-- End demo markup -->
65            <div class="demo-options">
66                <!-- Begin options markup -->
67                <!-- End options markup -->
68            </div>
69        </div>
70        <div class="footer demo-description">
71            <p>
72           
73            This sample illustrates a simple bar chart that compares the sales between the Nintendo Wii, the Xbox 360, and the Playstation 3.
74               </p>
75        </div>
76    </div>
77</body>
78</html>
Note: See TracBrowser for help on using the repository browser.