Angular pivot table

Pivot mode with row and grand totals for Angular, inside the same grid your users already know.

Grid Pro

v1 launch

$349

Per developer, paid once, lifetime updates

A working starting point

npm install @birchui/angular @birchui/core @birchui/grid-pro
Show pivot-table.component.ts
pivot-table.component.ts
import { Component } from '@angular/core';
import { BirchGridComponent } from '@birchui/angular';
import { PivotModule } from '@birchui/grid-pro';

const sales = [
  { id: 'SO-10421', region: 'Europe', country: 'France', year: 2026, revenue: 1890.5 },
  { id: 'SO-10422', region: 'Europe', country: 'Germany', year: 2025, revenue: 459 },
  { id: 'SO-10423', region: 'North America', country: 'Canada', year: 2026, revenue: 712.25 },
];

const columns = [
  { field: 'region', header: 'Region' },
  { field: 'year', header: 'Year', type: 'number' },
  { field: 'revenue', header: 'Revenue', type: 'number' },
];
const modules = [PivotModule];
const pivot = {
  enabled: true,
  rows: ['region'],
  columns: ['year'],
  values: [{ colId: 'revenue', aggFunc: 'sum' }],
  totals: true,
};

@Component({
  selector: 'app-pivot-table',
  standalone: true,
  imports: [BirchGridComponent],
  template: '<birchui-grid class="report" [columns]="columns" [rows]="sales" [options]="options" />',
  styles: '.report { display: block; height: 520px; }',
})
export class PivotReportComponent {
  readonly columns = columns;
  readonly sales = sales;
  readonly options = {
    licenseKey: 'LQ1.your-key',
    modules: modules,
    pivot: pivot,
  };
}

Measured in Chrome: pivoting 100,000 rows takes 52–93 ms. For an end-user report builder, see Pivot Studio.

How it fits Angular

Pivot mode turns rows into columns such as 2026 › Q1 › Revenue, with row and grand totals and sorting by any pivot column. It is part of Grid Pro, so a Angular team that needs pivoting buys one product, not an enterprise suite.

The Angular package ships standalone OnPush components with signal inputs and output(). The pivot table runs outside the zone, so scrolling never triggers change detection.

Inputs merge into one options object. Pass a new array or object to change one; mutating in place is not detected. On the server the host renders empty. The widget is created in afterNextRender, after hydration, in zone.js and zoneless apps alike.

Questions

Can Angular users drag fields to build their own pivot?

Grid Pro pivots from options you set in code. Pivot Studio adds a drag-and-drop field list, drill-through and saved reports.

Can I export the pivot to Excel?

Yes. The Excel module exports the current view, pivot columns and totals included, as a styled xlsx file.

Does the Angular pivot table work without zone.js?

Yes. provideZonelessChangeDetection() needs no extra setup; outputs re-enter the zone only when something listens.

Is it built with ng-packagr?

Yes, in the Angular package format, tested against Angular 21 in CI.