pivot.js
Advanced interactive Pivot table.
Objects
Constants
- PivotData.AGG_SUM
- PivotData.AGG_MAX
- PivotData.AGG_MIN
- PivotData.AGG_AVG
- PivotData.AGG_COUNT
- PivotData.AGG_DISTINCT
- PivotData.AGG_PRODUCT
- PivotData.AGG_VAR
- PivotData.AGG_DEVIATION
CSS classes
- .pivot_table
- .h1
- .h2
- .odd
- .even
Creates Pivot table. Arguments are explained below:
- div - table will be created as a child of this element
- headerRow - array of headings for dataRows
- dataRows - array of rows. Every row (array) must have the same number as elements as headerRow
- headerRowIndexes - array, containing indexes of columns which should be drawn as vertical aggregate columns
- headerColIndexes - array, containing indexes of columns which should be drawn as horizontal aggregate columns
- filterIndexes - array, containing indexes of columns which should be drawn as paging aggregate columns
- dataColumnIndex - index of data column
- optObj - object containing
- headingBefore - should we create headings before data?
- headingAfter - should we create headings after data?
- agg - constant, specifying appropriate aggregating function
For each column specified in filterIndexes, HTML element <select> is created; users are encouraged
to append them to DOM tree. They are available in pivot.filters
array.