Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.0 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  8. <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
  9. <!-- ExtJS library: base/adapter -->
  10. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  11. <!-- ExtJS library: all widgets -->
  12. <script type="text/javascript" src="../../ext-all.js"></script>
  13. <script type="text/javascript" src="people.js"></script>
  14. </head>
  15. <body id="docbody">
  16. <h1>Pivot Grid examples</h1>
  17. <p>
  18. This example shows how to create several PivotGrids using the same Store. In this case we have a dataset <br />
  19. detailing the eye color, left/right handedness, height, gender, iq and birth decade of 800 (fictional) people.
  20. </p>
  21. <p><a href="people.js">The example code</a> is not minified, so it's readable. </p>
  22. <h2>Counting occurrences</h2>
  23. <p>Let's start simple with a count of the number of people born per decade.</p>
  24. <div id="perDecade"></div>
  25. <h2>Finding averages</h2>
  26. <p>
  27. PivotGrid can be used to easily find averages in large datasets. Here we ask it for the average height of people <br />
  28. in each decade, broken down by gender and handedness.
  29. </p>
  30. <p>
  31. In this example we also use a, turning our calculated heights (which are decimals) into feet and inches notation.
  32. </p>
  33. <div id="avgHeight"></div>
  34. <h2>Finding maximums</h2>
  35. <p>
  36. It's also easy gather minimum and maximum values in PivotGrid. Here we determine the maximum IQ per birth decade and <br />
  37. 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.
  38. </p>
  39. <div id="maxIQ"></div>
  40. </body>
  41. </html>