1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>Ext JS PivotGrid Sample</title>
8 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
9 <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
11 <!-- ExtJS library: base/adapter -->
12 <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
14 <!-- ExtJS library: all widgets -->
15 <script type="text/javascript" src="../../ext-all.js"></script>
17 <script type="text/javascript" src="people.js"></script>
20 <h1>Pivot Grid examples</h1>
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.
25 <p><a href="people.js">The example code</a> is not minified, so it's readable. </p>
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>
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.
36 In this example we also use a, turning our calculated heights (which are decimals) into feet and inches notation.
38 <div id="avgHeight"></div>
39 <h2>Finding maximums</h2>
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.
44 <div id="maxIQ"></div>