Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.26 KB

File metadata and controls

60 lines (42 loc) · 2.26 KB

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.