Syncfusion Feedback

Trusted by the world’s leading companies

syncfusion trusted companies

Overview

The Angular Pivot Table is a powerful control used to organize and summarize business data and display the result in a cross-table format. It includes major functionalities such as data binding, drilling up and down, Excel-like filtering and sorting, editing, Excel and PDF exporting, several built-in aggregations, field lists, and calculated fields. A high volume of data can be loaded without performance degradation by using row and column virtualization.


Why choose the Syncfusion Angular Pivot Table?

Angular Pivot Table High Performance image

High performance

The Pivot Table is a powerful data visualization tool designed for fast-paced performance when loading millions of records.

Angular Pivot Table Databinding image

Seamless data binding

Bind data seamlessly from local and remote sources including: file formats (JSON, CSV), service protocols (OData, RESTful APIs), SQL databases (MySQL, Microsoft SQL Server, PostgreSQL, Oracle), NoSQL databases (MongoDB, Elasticsearch), and cloud data warehouses like Snowflake.

Angular Pivot Table Editing image

Flexible editing

Users can perform actions on raw data at runtime, including create, read, update, and delete. Through an interactive user interface, the control provides several edit modes, including inline, dialog, batch, and column.

Angular Pivot Table Chart Integration image

Integration with charts

Users can easily integrate the Pivot Table with independently rendered pivot data. It has support for more than 20 chart types.

Angular Pivot Table Formatting image

Conditional formatting

Users can easily change a Pivot Table cell value’s appearance(background color, font color, font family, and font size) as required.

Angular Pivot Table Adaptiveness image

Adapts to any resolution

The Pivot Table has a highly responsive layout and an optimized design for desktops, tablets, and smartphones. It works well on all mobile phones that use iOS, Android, or Windows OS.

Angular Pivot Table Themes image

Attractive, customizable themes

Create cutting-edge design with several built-in themes, such as Fluent, Tailwind CSS, Bootstrap, Material, and Fabric. Utilize the online Theme Studio tool to customize themes easily.

Angular Pivot Table Globalization image

Globalization and localization

Enable users from different locales to use the component by formatting dates, currency, and numbering to suit preferences.


Angular Pivot Table code example

Get started with the Angular Pivot Table using a few simple lines of HTML and TS code, as demonstrated in the following. Also, explore this Angular Pivot Table example, which shows you how to render the control.

<ejs-pivotview #pivotview id='PivotView' [dataSourceSettings]=dataSourceSettings width='100%' height='290'
      [gridSettings]='gridSettings'>
    </ejs-pivotview>
import { Component, OnInit } from '@angular/core';
import { IDataOptions, IDataSet } from '@syncfusion/ej2-angular-pivotview';
import { GridSettings } from '@syncfusion/ej2-pivotview/src/pivotview/model/gridsettings';
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(false);

/**
 * Pivot Table Default Sample.
 */

@Component({
    selector: 'ej2-pivotview-container',
    styleUrls: ['default.css'],
    templateUrl: 'default.html'
})

export class DefaultComponent implements OnInit {
    public dataSourceSettings: IDataOptions;
    public gridSettings: GridSettings;

    getPivotData(): IDataSet[] {
        let pivotData: IDataSet[] =
		 [{ 'Sold': 31, 'Amount': 52824, 'Country': 'France', 'Products': 'Mountain Bikes', 'Year': 'FY 2017', 'Quarter': 'Q1' },
            { 'Sold': 16, 'Amount': 23989, 'Country': 'Germany', 'Products': 'Road Bikes', 'Year': 'FY 2015', 'Quarter': 'Q2' },
            { 'Sold': 66, 'Amount': 93989, 'Country': 'Canada', 'Products': 'Van', 'Year': 'FY 2016', 'Quarter': 'Q3' },         
            { 'Sold': 40, 'Amount': 59965, 'Country': 'United Kingdom', 'Products': 'Road Bikes', 'Year': 'FY 2016', 'Quarter': 'Q3' },
            { 'Sold': 80, 'Amount': 127640, 'Country': 'United States', 'Products': 'Touring Bikes', 'Year': 'FY 2018', 'Quarter': 'Q4' }];
			return pivotData;
    }

    ngOnInit(): void {
        this.gridSettings = {
            columnWidth: 140
        } as GridSettings;

        this.dataSourceSettings = {
            enableSorting: true,
            columns: [{ name: 'Year' }, { name: 'Quarter' }],
            values: [{ name: 'Sold', caption: 'Units Sold' }, { name: 'Amount', caption: 'Sold Amount' }],
            dataSource: this.getPivotData(),
            rows: [{ name: 'Country' }, { name: 'Products' }],
            formatSettings: [{ name: 'Amount', format: 'C0' }],
            expandAll: false,
            filters: []
        };
    }
}

Classic layout

The classic (tabular) layout is designed to enhance data visibility by presenting information in a traditional table format. In this layout, each row label is displayed distinctly at various levels across separate columns for clarity and better organization. This structured approach simplifies the analysis of datasets, making it easier to interpret relationships and trends within the data through a detailed, organized, and user-friendly table format.

Classic layout in Angular Pivot Table control.


Angular Pivot Table and pivot chart.

Pivot charts

An Angular pivot chart can easily be integrated with pivot data rendered independently. The component includes support for plotting more than 20 chart types. The end-user experience is greatly enhanced with a set of user-interaction features: drill up, drill down, zoom, pan, crosshairs, trackball, events, selection, and tooltip. Highly interactive field list options are available for generating reports from relational data dynamically.


Virtual scrolling

Large amounts of data can be divided and displayed in the rows and columns of the current viewport using the virtual scrolling feature. Users can navigate to a desired view by scrolling the vertical and horizontal scrollbars.

Angular Pivot Table Virtual Scrolling image


Paging in Angular Pivot Grid.

Paging

Large amounts of data can be divided and displayed page by page with the paging feature. The pager UI allows users to navigate to a desired page using the navigation buttons or an input text box. Row and column pager sizes can be changed independently at runtime. Furthermore, users can toggle the position of the row and column pagers, modify their visibility, and visualize them using a compact view mode.


Pivot Table field list and group fields

The Angular Pivot Table field list and group fields options are automatically populated with fields from the bound data source. They allow end users to drag, filter, and sort fields, as well as create pivot reports at runtime.

Angular Pivot Table field list and group fields.


Angular Pivot Table control renders with OLAP data source.

OLAP data binding

The Pivot Table can be connected to an OLAP cube, and its result can be visualized in both tabular and graphical formats.


Defer layout update

Users can refresh the control on demand instead of during every UI interaction in the Pivot Table.

Angular Pivot Table with defer layout update support


Angular Pivot Table Summary Exploration image

Drill down and up

The built-in drill-down (expand) and drill-up (collapse) capabilities visualize data in detailed views and abstract views, respectively. By default, the data is displayed in a grouped manner.


Editing and updating

Users can create, read, update, and delete operations for raw data at runtime and update their changes to the underlying data source, reflecting the information in all corresponding cells. The Pivot Table control supports various edit modes such as inline, dialog, batch, and column edit through an interactive UI.

Angular Pivot Table with editing and updating support.


Filtering

Built-in member filters and Excel-like filters with advanced filtering options can be used to filter and view data as required. It is also possible to filter data programmatically in the Pivot Table.

Angular Pivot Table normal filter.

Member filtering

Filtering members in a pivot table to filter data displayed based on values in the row or column axes.

Angular Pivot Table label filtering.

Label filtering

Use Excel-like filtering options across column and row headers based on label text, dates, or numbers.

Angular Pivot Table value filtering.

Value filtering

Use Excel-like filtering options across column and row headers based on grand-total values.


Sorting

Users can use sorting to order rows and columns based on labels or values.

Normal sorting using Angular Pivot Table.

Header sorting

Order the column and row header text either in ascending or descending order.

Column sorting using Angular Pivot Table.

Column sorting

Column sorting, also known as value sorting, orders the column values either in ascending or descending order. It is performed by clicking the header of the column to be sorted.

Custom sorting in Angular Pivot Table control.

Custom sorting

Arrange field headers in column and row axes according to the user-defined order.


Aggregation support in Angular Pivot Table control.

Aggregation

Users can perform calculations on a group of values using the aggregation option. By default, values are added together. The other aggregation types are: average, minimum, maximum, count, distinct count, product, index, population standard deviation, sample standard deviation, population variance, sample variance, running totals, difference from, percent of difference from, and percent of grand total.


Calculated fields

Calculated or unbound fields generate unique fields with users’ calculated values by executing a simple, user-defined formula.

Calculated field in Angular Pivot Table control.


Angular Pivot Table with drill through.

Drill through

The drillthrough feature easily obtains a list of raw items for a particular value cell or summary cell.


Totals

Subtotals and grand totals are calculated automatically by the pivot engine inside the control and displayed in the Pivot Table to help users make decisions more quickly. Also, users can show or hide subtotals and grand totals for rows and columns.

Totals in Angular Pivot Table.


Conditional formatting in Angular Pivot Table control.

Conditional formatting

Users can define conditions that, when met, format font style, text color, background color, and font size for values and summary cells.


Number and date formatting

Number and date formatting help transform the appearance of the actual cell values.

Number and date formatting in Angular Pivot Table control.


Angular Pivot Table grouping date and number.

Grouping dates and numbers

The Angular Pivot Table control automatically groups dates and numbers, so the date type can be formatted and displayed based on year, quarter, month, day, and more. The number type can be grouped by range, such as 1–5 or 6–10.


Frozen headers

Users can freeze row and column headers to compare them with cell values.

Freezes headers in Angular Pivot Table control.


Columns and rows

Resize columns in the Angular Pivot Table control.

Resize

Change the column width at runtime by simply dragging the rightmost boundary of the column header. A scroll bar will appear when the content width exceeds the control width.

Reorder columns in the Angular Pivot Table control.

Reorder

Users can reorder columns either through user interaction or programmatically. Simply dragging and dropping a column header into the desired column position will reorder the columns.

Hyperlink in Angular Pivot Table control.

Users can add hyperlinked text to a cell to redirect to external resources. The control allows them to perform custom operations programmatically.

Cell selection in Angular Pivot Table control.

Cell selection

Select a range of cells.

Tooltip in Angular Pivot Table control.

Tooltips

A tooltip provides basic information about a cell while hovering over it with the pointer.

Cell template support in Angular Pivot Table control.

Cell template

With cell templates, users can easily add features like images, checkboxes, and text nodes to any cell.


Toolbar option in Angular Pivot Grid control.

Toolbars

A toolbar enhances user interaction and provides access to frequently used features. These features include: new report, save report, save as report, rename report, delete report, report list, show grid, show chart, show or hide totals, export reports, and more.


Exporting

Export the Angular Pivot Table data to Excel, PDF, and CSV formats. Users can also customize the exported document by adding header, footer, and cell properties like type, style, and position programmatically.

Export reports to Excel, PDF, and CSV in Angular Pivot Table control.


Angular Native Excel Pivot Export image

Export to Native Excel PivotTable

Users can export the Syncfusion Pivot Table directly to Microsoft Excel’s native PivotTable format, not just as a static table or flattened data. This ensures that all interactive features are preserved, allowing users to fully utilize Excel’s PivotTable functionalities.

Key advantages:

  • Native Excel PivotTable: Exports to the actual PivotTable format used by Excel, preserving rows, columns, values, and filters.
  • Fully interactive in Excel: Continue to sort, filter, expand and collapse groups, and modify field lists just like in your original pivot.
  • Reusable layout: Save time by exporting your configured pivot layout for future use or easy sharing.

Optimized for mobile devices

Touch support for Angular Pivot Table control.

Touch support

All features will work on touch devices easily. Features such as drilling up, drilling down, filtering, sorting, and report manipulation can be done on the fly.

Responsive view of Angular Pivot Table control.

Responsiveness

The responsive design allows the control to be viewed on various devices.


Accessibility

Keyboard navigation in Angular Pivot Table.

Keyboard navigation

The Pivot Table ensures that every cell is keyboard accessible. Major features like sorting, selection, and editing can be performed using keyboard commands alone; no mouse interaction is required. This helps create highly accessible applications using this component.

RTL support in Angular Pivot Table control.

Right to left (RTL)

The Pivot Table supports RTL rendering, allowing the text and layout to be displayed from right to left.


Angular version compatibility

The Angular Pivot Table is kept up-to-date to make it compatible with the latest Angular version.

Angular Pivot Table version compatibility.






Other supported frameworks

The Pivot Table is also available for the Blazor, React, JavaScript, and Vue frameworks. Explore its platform-specific options through the following links:

Supported browsers

The Angular Pivot Table works well with all modern web browsers, including Chrome, Firefox, Edge, Safari, and Opera.

Supported browsers of Angular Pivot Table.

145+ ANGULAR UI COMPONENTS

Frequently Asked Questions

The Syncfusion Angular Pivot Table supports the following features:

  • High performance pivot engine and virtualization that help load large volumes of data quickly.

  • Support for both relational and OLAP data sources. The relational data source can use input data via JSON, RESTful services, OData services, WCF services, and more.

  • A grid and chart can organize and summarize pivot data.

  • Pivot data can be easily filtered, sorted, aggregated, and grouped.

  • Detailed or abstract data can be viewed using drill down or up.

  • Seamless interaction and editing capabilities.

  • Simple configuration and APIs.

  • Support for all modern browsers.
  • Touch-friendly and responsive UI.
  • Expansive learning resources such as demos, documentation, and videos to get started quickly with the Angular Pivot Table component.

You can find our Angular Pivot Table demo here.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

See Real Success Stories

Developers around the world trust Syncfusion’s Essential Studio to simplify complex projects and speed up delivery. With a vast library of UI controls, powerful SDKs, and reliable support, Essential Studio helps teams build enterprise-ready applications with confidence.

Read Our Customer Stories


Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Recent activities in Angular Pivot Table tutorials and blogs

The Angular Pivot Table tutorial videos and blog posts will guide you in building your first app with this Angular component. They provide problem-solving strategies, describe features and functionalities, announce new feature releases, explain best practices, and showcase example scenarios. Explore our latest posts on our blog and tutorial video channels for Angular Pivot Table updates.

Up arrow icon