1 | <!doctype html> |
---|
2 | <html lang="en"> |
---|
3 | <head> |
---|
4 | <title>PieChart - Donut</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.wijpiechart.js" type="text/javascript"></script> |
---|
20 | <style type="text/css"> |
---|
21 | #wijpiechart |
---|
22 | { |
---|
23 | width: 756px; |
---|
24 | height: 475px; |
---|
25 | } |
---|
26 | </style> |
---|
27 | <script id="scriptInit" type="text/javascript"> |
---|
28 | $(document).ready(function () { |
---|
29 | $("#wijpiechart").wijpiechart({ |
---|
30 | radius: 140, |
---|
31 | innerRadius: 40, |
---|
32 | showChartLabels:false, |
---|
33 | hint: { |
---|
34 | content: function () { |
---|
35 | return this.data.label + " : " + Globalize.format(this.value / this.total, "p2"); |
---|
36 | } |
---|
37 | }, |
---|
38 | legend: { |
---|
39 | text: "May 2009 - May 2010" |
---|
40 | }, |
---|
41 | header: { |
---|
42 | text: "Steam - DX10/11 Systems (Vista/Win7 + DX10/11 GPU)" |
---|
43 | }, |
---|
44 | seriesList: [{ |
---|
45 | label: "DX11GPU & WIN7", |
---|
46 | legendEntry: true, |
---|
47 | data: 5.6, |
---|
48 | offset: 30 |
---|
49 | }, { |
---|
50 | label: "DX10GPU & WIN7", |
---|
51 | legendEntry: true, |
---|
52 | data: 56.36, |
---|
53 | offset: 0 |
---|
54 | }, { |
---|
55 | label: "DX10/11GPU & XP", |
---|
56 | legendEntry: true, |
---|
57 | data: 16.67, |
---|
58 | offset: 0 |
---|
59 | }, { |
---|
60 | label: "DX9 SM2b & 3.0", |
---|
61 | legendEntry: true, |
---|
62 | data: 11.77, |
---|
63 | offset: 0 |
---|
64 | }, { |
---|
65 | label: "DX9 SM 2 GPU", |
---|
66 | legendEntry: true, |
---|
67 | data: 4.34, |
---|
68 | offset: 0 |
---|
69 | }, { |
---|
70 | label: "DX8 GPU & BELOW", |
---|
71 | legendEntry: true, |
---|
72 | data: 5.13, |
---|
73 | offset: 0 |
---|
74 | }] |
---|
75 | }); |
---|
76 | }); |
---|
77 | </script> |
---|
78 | </head> |
---|
79 | <body class="demo-single"> |
---|
80 | <div class="container"> |
---|
81 | <div class="header"> |
---|
82 | <h2> |
---|
83 | Donut</h2> |
---|
84 | </div> |
---|
85 | <div class="main demo"> |
---|
86 | <!-- Begin demo markup --> |
---|
87 | <div id="wijpiechart" class="ui-widget ui-widget-content ui-corner-all"> |
---|
88 | </div> |
---|
89 | <!-- End demo markup --> |
---|
90 | <div class="demo-options"> |
---|
91 | <!-- Begin options markup --> |
---|
92 | <!-- End options markup --> |
---|
93 | </div> |
---|
94 | </div> |
---|
95 | <div class="footer demo-description"> |
---|
96 | <p>This sample demonstrates how to create a donut pie chart simply by setting the <b>innerRadius</b> option.</p> |
---|
97 | </div> |
---|
98 | </div> |
---|
99 | </body> |
---|
100 | </html> |
---|