@syncfusion/ej2-react-pivotview

29.2.4 • Public • Published

React Pivot Table Component

The React Pivot Table is a multi-dimensional data visualization component built on top of relational and OLAP data sources. The pivot report can be managed dynamically at runtime, along with other features such as graphical visualization (Pivot Chart), drill down/up, aggregation, filtering, sorting, grouping, conditional formatting, drill through, editing, hyperlink, and more. The large amounts of data are effectively handled by virtualization or paging support.

Getting started . Online demos . Learn more

React Pivot Table Component

Trusted by the world's leading companies Bootstrap logo

Setup

Create a React Application

You can use create-react-app to setup applications. To create React app, use the following command.

npx create-react-app my-app --template typescript
cd my-app
npm start

Add Syncfusion® Pivot Table package

All Syncfusion® React packages are published in the npmjs.com registry. To install the React Pivot Table package, use the following command.

npm install @syncfusion/ej2-react-pivotview --save

Add CSS references for Pivot Table

Add CSS references needed for a Pivot Table in src/App.css from the ../node_modules/@syncfusion package folder.

@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-dropdowns/styles/material.css';
@import '../node_modules/@syncfusion/ej2-grids/styles/material.css';
@import '../node_modules/@syncfusion/ej2-inputs/styles/material.css';
@import '../node_modules/@syncfusion/ej2-lists/styles/material.css';
@import '../node_modules/@syncfusion/ej2-navigations/styles/material.css';
@import '../node_modules/@syncfusion/ej2-popups/styles/material.css';
@import '../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css';
@import '../node_modules/@syncfusion/ej2-calendars/styles/material.css';
@import '../node_modules/@syncfusion/ej2-react-pivotview/styles/material.css';

Add Pivot Table Component

In the src/App.tsx file, use the following code snippet to render the Syncfusion® React Pivot Table component and import App.css to apply styles to the Pivot Table.

import { IDataSet, IDataOptions, PivotViewComponent } from '@syncfusion/ej2-react-pivotview';
import * as React from 'react';
import './App.css';

export default function App() {
    let pivotData: IDataSet[] = [
        { 'Sold': 31, 'Amount': 52824, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q1' },
        { 'Sold': 51, 'Amount': 86904, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q2' },
        { 'Sold': 90, 'Amount': 153360, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q3' },
        { 'Sold': 25, 'Amount': 42600, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2015', 'Quarter': 'Q4' },
        { 'Sold': 27, 'Amount': 46008, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2016', 'Quarter': 'Q1' }
    ];
    let dataSourceSettings: IDataOptions = {
        columns: [{ name: 'Year', caption: 'Production Year' }, { name: 'Quarter' }],
        dataSource: pivotData,
        expandAll: false,
        filters: [],
        formatSettings: [{ name: 'Amount', format: 'C0' }],
        rows: [{ name: 'Country' }, { name: 'Products' }],
        values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }]
    };
    return <PivotViewComponent id='PivotView' height={350} dataSourceSettings={this.dataSourceSettings}></PivotViewComponent>
}

Supported frameworks

Pivot Table component is also offered in the following list of frameworks.


     JavaScript    

       Angular      

       Vue         

  ASP.NET Core  

  ASP.NET MVC  

Showcase samples

Key features

  • Data sources: Binds the Pivot Table component with an array of JSON objects, CSV files, and web services. It also supports multi-dimensional data sources, such as OLAP.
  • Pivot chart: Allows user to visualize the pivot data graphically with 20+ chart types.
  • Drill down: Provides option to view the bound data in both detailed and abstract view.
  • Filtering: Allows user to view only specific/desired records in the component.
  • Sorting: Both member and value sorting are supported. It’s allows user to order fields and values (column) either in ascending or descending order respectively.
  • Field list and grouping bar: Supports UI interaction at runtime to dynamically change the report along with sorting, filtering and remove options.
  • Aggregation: Provides built-in aggregation types such as sum, count, product, average, min, max, and more.
  • Calculated field: Users can add new value field(s) to the report dynamically using this option.
  • Grouping: Allows you to automatically group date, time, number, and string data based on group interval.
  • Virtual scrolling and paging: Provides the option to display large amounts of data page by page, using either virtual scrolling or pager UI.
  • Drill through and editing: Provides the ability to perform CRUD operations such as creating, reading, updating, and deleting raw data at runtime via an interactive UI.
  • Toolbar: Provides the option to access frequently used features like switching between pivot table and pivot chart, changing chart types, conditional formatting, exporting, and so on.
  • Templates: Templates can be used to create custom user experiences in the pivot table.
  • Export: Data can be exported to Excel, CSV, and PDF formats.
  • Right-to-left (RTL): Aligns content in the Pivot Table component from right to left.
  • Globalization: Personalize the Pivot Table component with different languages, as well as culture-specific date and number formatting.

Support

Product support is available through the following mediums.

Changelog

Check the changelog here. Get minor improvements and bug fixes every week to stay up to date with frequent updates.

License and copyright

This is a commercial product and requires a paid license for possession or use. Syncfusion® licensed software, including this component, is subject to the terms and conditions of Syncfusion® EULA. To acquire a license for 80+ React UI components, you can purchase or start a free 30-day trial.

A free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

See LICENSE FILE for more info.

© Copyright 2025 Syncfusion® Inc. All Rights Reserved. The Syncfusion® Essential Studio® license and copyright applies to this distribution.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
21.1.420beta
29.2.484latest

Version History

VersionDownloads (Last 7 Days)Published
29.2.484
29.1.40102
29.1.38114
29.1.375
29.1.3435
29.1.3337
28.2.11250
28.2.718
28.2.614
28.2.4139
28.2.31
28.1.414
28.1.3818
28.1.371
28.1.360
28.1.33161
27.2.4571
27.2.30
27.2.20
27.1.5823
27.1.571
27.1.554
27.1.530
27.1.525
27.1.5112
27.1.500
27.1.480
26.2.14236
26.2.121
26.2.1127
26.2.100
26.2.90
26.2.88
26.2.515
26.2.40
26.1.421
26.1.414
26.1.400
26.1.390
26.1.3539
25.2.649
25.2.50
25.2.40
25.2.30
25.1.421
25.1.410
25.1.391
25.1.382
25.1.370
25.1.3533
24.2.94
24.2.84
24.2.50
24.2.40
24.2.30
24.1.470
24.1.460
24.1.450
24.1.440
24.1.430
24.1.412
23.2.613
23.2.51
23.2.40
23.1.4446
23.1.418
23.1.381
23.1.360
22.2.1211
22.2.113
22.2.100
22.2.90
22.2.80
22.2.71
22.2.50
22.1.390
22.1.380
22.1.361
21.1.420
21.1.360
22.1.340
21.2.101
21.2.90
21.2.81
21.2.60
21.2.50
21.2.40
21.2.310
21.1.410
21.1.390
21.1.370
21.1.3518
20.4.5453
20.4.5025
20.4.480
20.4.440
20.4.430
20.4.420
20.4.406
20.4.380
20.3.590
20.3.572
20.3.561
20.3.500
20.3.490
20.3.470
20.2.450
20.2.430
20.2.390
20.2.3816
20.2.36121
20.1.610
20.1.5816
20.1.570
20.1.560
20.1.550
20.1.480
20.1.470
19.4.5564
19.4.541
19.4.530
19.4.520
19.4.500
19.4.480
19.4.470
19.4.430
19.4.420
19.4.410
19.4.401
19.4.381
19.3.576
19.3.550
19.3.530
19.3.480
19.3.470
19.3.460
19.3.440
19.3.430
19.2.602
19.2.5668
19.2.550
19.2.510
19.2.490
19.2.480
19.2.460
19.2.440
19.1.690
19.1.670
19.1.652
19.1.630
19.1.590
19.1.580
19.1.570
19.1.560
19.1.540
18.4.4733
18.4.460
18.4.430
18.4.410
18.4.390
18.4.350
17.2.55-12054790
18.4.340
18.4.310
18.4.300
17.2.52-12054790
18.3.4816
18.3.470
18.3.441
18.3.400
18.3.350
18.2.581
18.2.570
18.2.560
18.2.550
18.2.540
18.2.460
18.2.440
18.1.5410
18.1.529
18.1.440
18.1.420
18.1.36-beta0
17.4.510
17.4.500
17.4.470
17.4.460
17.4.430
17.4.3930
17.3.292
17.3.270
17.3.260
17.3.190
17.3.140
17.3.9-beta0
17.2.48-beta0
17.2.29-beta0
17.2.470
17.2.460
17.2.350
17.2.340
17.2.28-beta0
17.1.490
17.1.470
17.1.420
17.1.380
17.1.32-beta0
16.4.530
16.4.520
17.1.1-beta0
16.4.470
16.4.420
16.4.40-beta0
16.3.340
16.3.330
16.3.300
16.3.290
16.3.240
16.3.210
16.3.170
16.2.500
16.2.490
16.2.460
16.2.450
16.2.410

Package Sidebar

Install

npm i @syncfusion/ej2-react-pivotview

Weekly Downloads

2,628

Version

29.2.4

License

SEE LICENSE IN license

Unpacked Size

203 kB

Total Files

194

Last publish

Collaborators

  • syncfusionorg
  • essentialjs2
  • syncfusion-javascript