🌻 Pivot Tables#

Use this panel to build pivot tables and charts from your project data with a simple drag‑and‑drop interface. Three subtabs: Pivot table, Summary (one-dimensional heatmaps for categorical vars with <10 categories, mean/median for continuous), and All-by-all checks (pairwise significance tests).

Example bookmark:

Quick start#

This panel is powered by PivotTable.js, which generates most of the UI dynamically. These are the actual widgets you can see/use:

  1. 👉🏼 (Links / Factors / Sources) (Dropdown): Which table to analyse? — chooses which dataset to pivot.
  2. 👉🏼 (After pipeline / Before pipeline) (Radio buttons): Which stage to analyse? — chooses post‑pipeline (matches other panels) vs raw data for the chosen dataset.
  3. 👉🏼 (Refresh) (Button): reloads + re-renders the pivot with latest data.
  4. 👉🏼 (Sig level) (Dropdown): significance threshold for 2-way table tests (0.10, 0.05, 0.01, 0.001).
  5. 👉🏼 (Shading) (Dropdown): conditional formatting for every table in the panel — see Conditional formatting.
  6. 👉🏼 (Copy to Clipboard) (Button): copies the current pivot table/chart as an image.
  7. 👉🏼 (Copy as Table) (Button): copies the pivot as tab-separated text — paste into Excel/Sheets to get a properly aligned table (Table renderer only).
  8. 👉🏼 (Download XLSX) (Button): downloads the current pivot as .xlsx (Table renderer only). Merged cells (rowspan/colspan) are expanded so columns align correctly.
  9. 👉🏼 (Help) (Button): opens help for Pivot Tables.
  10. 👉🏼 (Search fields) (Text field): searches the available field/column names in the drag-and-drop list.
  11. 👉🏼 Drag-and-drop fields (field chip list): shows available fields (columns). Drag a field chip into Rows, Cols, or Vals.
  12. 👉🏼 (Rows / Cols / Vals) (Drag-and-drop drop zones): defines how the pivot is laid out and what values are summarised.
  13. 👉🏼 (Aggregator) (Dropdown): chooses the aggregation function (e.g. Count, Sum, Average).
  14. 👉🏼 (Vals) (Dropdown): chooses the numeric field to aggregate (only appears for aggregators that need it).
  15. 👉🏼 (Renderer) (Dropdown): chooses the output type (table, heatmaps, Plotly charts).
  16. 👉🏼 (Row Order / Col Order) (Dropdowns): chooses how row/column keys are sorted.
  17. 👉🏼 (Filter popup on each field chip) (Popup): include/exclude values for that field.
    • 👉🏼 (Search) (Text field): searches within the field’s value list.
    • 👉🏼 (Checkbox list): ticks/unticks specific values.
  18. 👉🏼 (× on a field chip) (Button): removes that field from Rows/Cols/Vals.

Arrange fields (drag and drop)#

Choose the calculation ("Aggregator")#

Filter or exclude values#

Sorting#

Heatmaps and charts#

Conditional formatting#

One Shading dropdown in the toolbar colours the tables in all three subtabs the same way, so the pivot table, the Summary heatmaps and the All-by-all tables always match.

Row and column totals always keep their own blue shading. The pivot table's own Heatmap renderers colour their cells themselves, so Shading leaves those alone. The setting is saved to the URL, so a bookmark reopens with the same formatting.

Export and sharing#

Significance testing#

When you build a 2-way count table (one field in Rows, one in Cols, Count aggregator), the app runs a statistical test and shows the result below the table.

Notes on the datasets#

💡Tip: For results that match other panels, use After Analysis Pipeline.