Pivot Table demos

Every demo has a standalone page with its preview, source and notes.

17 demos

Pivot Table

  • Pivot Table overview

    One usePivot store drives a PivotToolbar, a PivotAxisBar, the PivotTable and a standalone PivotFieldList that stay in sync without handlers.

  • Compact and tabular layouts

    Switch a three-level row report between the compact treegrid and the tabular grid, drill members down and up, and expand or collapse every member.

  • Cell templates and conditional formats

    Custom value and header content, a hyperlink row header handled by onCellClick, class names per cell, tooltips, conditional format tones and box cell selection.

  • Toolbar, export and saved reports

    The built-in toolbar items plus a custom item, Excel, CSV and PDF export and print with cancellable export events, a saved report list over getState and restoreState, and persistState.

  • Remote pivot engine

    A PivotTable over createJsonPivotSource; the reference handler aggregates 100,000 raw rows on the server, the source sends a bearer token and logs every request, a custom loading template shows while the server works, and the export loads every window of the server result.

  • Keyboard, localization and right to left

    The treegrid, axis bar toolbars, field list and dialogs by keyboard, localeText with an Intl locale, right-to-left layout, and full-screen sheets on small screens.

  • Performance with a million rows

    Generate up to 1,000,000 raw rows and read the measured engine time of the aggregation, a sort, a filter and a drill next to the release budgets; averages stay exact under pre-aggregation; paging is opt-in.

Fields and filters

  • Field list with deferred update

    A standalone PivotFieldList with folders, sorted fields, search, a hidden field and deferUpdate, where moves edit a draft model until Apply.

  • Axis bar options and field moves

    A PivotAxisBar with its sort, filter and remove commands, drag and drop, the fields panel and the shown axes as options, per-field capabilities, and field moves logged and refused through onBeforeFieldMove.

  • Member, label and value filters

    Include and exclude member filters, label and value (top N) filters from code and the member editor, a 2,500-member virtualized list, and the cancellable filter and member editor events.

  • Field list popup and editors

    The built-in popup field list with its field menus, and the calculated field, number format and conditional format dialogs, opened from the toolbar and from the instance API.

Drill through and chart

  • Drill through with editing

    Double-click a value cell or press Enter on it to open its raw rows in a DataGrid dialog; edits, additions and deletions write through and re-aggregate the pivot.

  • Pivot chart

    Chart composed with PivotTable through usePivotChartProps; point clicks drill down and through, the chart type and the table / chart / both view are app state, and the PDF export carries the table and the chart.

Engine

  • Data binding and the report model

    CSV text parsed with parseCsv into the data prop, field definitions with captions, folders and per-field capabilities, a controlled pivotModel, data replacement, refresh and the result API.

  • Aggregates and show values as

    Every aggregate and show-values-as kind on a value field, value field menus on the axis bar with a restricted aggregate list edited per field by onBeforeAggregateMenuOpen, and a getCellValue override.

  • Sorting and grouping

    Member sort ascending, descending, in data order or in a custom order, value sorting from the column headers, and date, number and custom grouping from code and the field menu.

  • Totals, values placement and empty members

    Grand totals and subtotals with their positions, measures on rows or columns at any level, the value header, empty members and the empty cell text, all from pivotModel.