This sample demonstrates how to group dates in the Syncfusion JavaScript Pivot Table (PivotView) component. Date grouping allows you to organize data by year, month, and day, making it easier to analyze trends over time.
The Pivot Table (PivotView) is a powerful tool for summarizing and analyzing large datasets. In this example:
- A dataset is generated with fields such as:
ProductIDCityYear,Month, andDateCustomerNameInStockandSold
- The Pivot Table groups data by Year, Month, and Date in the column axis.
- Virtualization is enabled for smooth performance with large datasets.
- Date Grouping:
Columns are grouped byYear,Month, andDatefor better time-based analysis. - Dynamic Data Generation:
The sample creates 500,000 records with random values for testing scalability. - Performance Optimization:
Virtual scrolling and member editor limits are enabled for large datasets.
- A modern browser (Chrome, Firefox, Edge)
- No build tools required; this is a pure HTML/JavaScript example.
- Clone the repository:
git clone https://github.com/SyncfusionExamples/date-grouping-pivot-table
- Open the sample:
- Navigate to the project folder.
- Open
Date_Grouping.HTMLin your browser.
Date_Grouping.HTMLβ Main sample file with Pivot Table configuration.styles/material.cssβ Syncfusion Material theme.scripts/ej2.min.jsβ Syncfusion JavaScript library.
For questions or feedback, visit the Syncfusion Support Portal or Community Forums.
This is a commercial product and requires a valid Syncfusion license.
View License Terms.