This sample demonstrates how to enable and configure a Field List in the Syncfusion React Pivot Table (PivotView) component. It also showcases features like toolbar integration, calculated fields, and value buttons for interactive data analysis.
The Syncfusion Pivot Table is a powerful React component for summarizing and analyzing large datasets. In this example:
- A sample dataset includes fields like
Country
,Products
,Year
,Quarter
,Sold
, andAmount
. - The Pivot Table is configured with:
- Rows:
Country
,Products
- Columns:
Year
- Values:
Sold
(Units Sold),Amount
(Sold Amount)
- Rows:
- The Field List is enabled and integrated into the toolbar.
- Calculated Fields and Defer Layout Update options are also enabled.
- The field list dialog is rendered with
document.body
as its target for better UI placement.
- Field List: Allows users to dynamically modify the Pivot Table layout.
- Toolbar Integration: Adds the Field List button to the toolbar.
- Calculated Fields: Enables creation of custom calculations.
- Values Button: Displays value settings for better customization.
- Defer Layout Update: Improves performance during configuration.
Before running this project, ensure you have:
- Node.js (latest version recommended)
- Visual Studio Code
Follow these steps to run the application:
-
Clone the repository:
git clone https://github.com/SyncfusionExamples/field-list-in-react-pivot-table
-
Navigate to the project folder:
cd field-list-in-react-pivot-table
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and go to
http://localhost:3000
to view the Pivot Table.
field-list-in-react-pivot-table/
├── public/
│ ├── index.html
│ └── ...
├── src/
│ ├── App.tsx # Main component with Pivot Table configuration
│ ├── data.js # Sample data used in the Pivot Table
│ └── ...
├── package.json
├── README.md
└── tsconfig.json
For questions or feedback, visit:
This project uses Syncfusion components, which require a valid license for production use.
View Syncfusion License Terms