Upgrade to ExtJS 3.3.0 - Released 10/06/2010
[extjs.git] / examples / pivotgrid / people.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html>
3 <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5     <title>Ext JS PivotGrid Sample</title>
6     <!-- GC -->
7     
8     <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
9     <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
10     
11     <!-- ExtJS library: base/adapter -->
12     <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
13
14     <!-- ExtJS library: all widgets -->
15     <script type="text/javascript" src="../../ext-all.js"></script>
16     
17     <script type="text/javascript" src="people.js"></script>
18 </head>
19 <body id="docbody">
20     <h1>Pivot Grid examples</h1>
21     <p>
22         This example shows how to create several PivotGrids using the same Store. In this case we have a dataset <br />
23         detailing the eye color, left/right handedness, height, gender, iq and birth decade of 800 (fictional) people.
24     </p>
25     <p><a href="people.js">The example code</a> is not minified, so it's readable. </p>
26     
27     <h2>Counting occurrences</h2>
28     <p>Let's start simple with a count of the number of people born per decade.</p>
29     <div id="perDecade"></div>
30     <h2>Finding averages</h2>
31     <p>
32         PivotGrid can be used to easily find averages in large datasets. Here we ask it for the average height of people <br />
33         in each decade, broken down by gender and handedness.
34     </p>
35     <p>
36         In this example we also use a, turning our calculated heights (which are decimals) into feet and inches notation.
37     </p>
38     <div id="avgHeight"></div>
39     <h2>Finding maximums</h2>
40     <p>
41         It's also easy gather minimum and maximum values in PivotGrid. Here we determine the maximum IQ per birth decade and <br />
42         handedness. Note that we don't have to specify left <b>and</b> top axes - in this case we are summarizing purely through a top axis.
43     </p>
44     <div id="maxIQ"></div>
45 </body>
46 </html>