Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
How to Create a Pivot Table explains how to create a simple pivot table. This article describes how to customize a pivot table’s appearance by setting various properties:
The PivotTable class controls the overall pivot table and can be formatted in a number of ways.
Microsoft Excel offers a number of different pre-set report formats. Aspose.Cells for Node.js via C++ support these formatting options too. To access them:
The code sample below shows how to format the pivot table to show grand totals for rows and columns, and how to set the report’s field order. It also shows how to set a customer string for null values.
To formatting how the pivot table report looks manually, instead of using pre-set report formats, use the PivotTable.formatAll(style) and PivotTable.format(row, column, style) methods. Create a style object for your desired formatting, for example:
The PivotField class represents a field in a pivot table and can be formatted in a number of ways. The code sample below shows how to:
The code sample below shows how to set display formats and number format for data fields.
The PivotFieldCollection has a method named clear() that allows you to clear pivot fields. Use it when you want to clear all the pivot fields in the areas, for example, page, column, row or data. The code sample below shows how to clear all the pivot fields in a data area.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.