Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
A pivot table is an interactive summary of records. For example, you may have hundreds of invoice entries in a list in a worksheet. A pivot table can total the invoices by customer, product, or date. With Microsoft Excel it is possible to quickly re‑arrange the information in the pivot table by dragging buttons to a new position.
A pivot chart is an interactive graphical representation of the data in a pivot table. Pivot charts were introduced in Excel 2000. Using a pivot chart makes it even easier to understand the data since the pivot table creates subtotals and totals automatically.
Aspose.Cells supports pivot tables and pivot charts.
Aspose.Cells provides a special set of classes used to create pivot tables. These classes are used to create and set PivotTable objects, which act as a PivotTable object’s basic building blocks:
javac -classpath %classpath%;e:\Aspose.Cells.jar; ClassName.java
java -classpath %classpath%;e:\Aspose.Cells.jar; ClassNameTo create a pivot table using Aspose.Cells:
PutValue/setValue method. You can also use a template file already filled with data. The data will be used as the pivot table’s data source.add method (encapsulated in the Worksheet object).A code sample is given below. Executing the code generates a new file: pivotTable_test.xls.
Input data

The output pivot table

To create a pivot chart using Aspose.Cells:
PivotSource of the chart to refer to an existing pivot table in the spreadsheet.Below is the code used by the component to accomplish the task. Executing the code generates a new file: pivotChart_test.xls.
The pivot chart sheet

This article shows how to create pivot tables and pivot charts using Aspose.Cells. Hopefully, it will help you use these features in your own scenarios.
Aspose.Cells has benefited from years of research, design, and careful tuning.
We welcome your queries, comments, and suggestions at the Aspose.Cells Forum. We warrant a prompt reply.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.