Skip to content

This repository contain the sample that demonstrates how the date grouping feature works in Syncfusion Pivot table.

Notifications You must be signed in to change notification settings

SyncfusionExamples/date-grouping-pivot-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Syncfusion JavaScript Pivot Table – Date Grouping Example

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.

πŸ“– Overview

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:
    • ProductID
    • City
    • Year, Month, and Date
    • CustomerName
    • InStock and Sold
  • The Pivot Table groups data by Year, Month, and Date in the column axis.
  • Virtualization is enabled for smooth performance with large datasets.

βœ… Key Features in This Sample

  • Date Grouping:
    Columns are grouped by Year, Month, and Date for 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.

πŸ›  Prerequisites

  • A modern browser (Chrome, Firefox, Edge)
  • No build tools required; this is a pure HTML/JavaScript example.

πŸš€ Getting Started

  1. Clone the repository:
    git clone https://github.com/SyncfusionExamples/date-grouping-pivot-table
  2. Open the sample:
    • Navigate to the project folder.
    • Open Date_Grouping.HTML in your browser.

πŸ“‚ Project Structure

  • Date_Grouping.HTML – Main sample file with Pivot Table configuration.
  • styles/material.css – Syncfusion Material theme.
  • scripts/ej2.min.js – Syncfusion JavaScript library.

πŸ“š Learn More

πŸ’¬ Support

For questions or feedback, visit the Syncfusion Support Portal or Community Forums.

πŸ“œ License

This is a commercial product and requires a valid Syncfusion license.
View License Terms.

About

This repository contain the sample that demonstrates how the date grouping feature works in Syncfusion Pivot table.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages