0.6.6 • Published 4 months ago

@univerjs-pro/engine-pivot v0.6.6

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

@univerjs-pro/engine-pivot

npm version license

Introduction

Pivot table is a powerful data analysis tool that can quickly summarize, organize and analyze large amounts of data, thereby helping users discover patterns and trends in the data. This package contains the analyze logic for univer pivot.

  • 11 subtotal methods supported like excel
  • Dimension label filtering and sorting (using localCompare method), label value filter.
  • tabular layout
  • expand / collapse
  • Supports multiple value dimensions, and can customize the area (value position) and position (value index) of the multi-value dimension.
  • rename field & format filed

More info you can get from link https://docs.univer.ai/en-US/guides/sheets/features/pivot-table/introduction#data-source

This npm package does not depend on any third-party libraries.

Usage

We do not recommend using this npm package alone because it is pure calculation logic without any UI. You can use @univerjs-pro/sheets-pivot and @univerjs-pro/sheets-pivot-ui to get the complete experience, here are the reference links: https://docs.univer.ai/en-US/guides/sheets/features/pivot-table

Installation

npm i @univerjs-pro/engine-pivot

Performance of Pivot Table

Test machine spec: a MacBook Pro with Apple Silicon M2 Pro.

Spreadsheet Cells CountRead data (s)Query time (s)
500k (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions)0.2520.040
1M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions)0.3760.078
2M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions)0.7320.140
5M (1 pivot row dimension, 1 pivot col dimension, 2 value dimensions)3.2000.415
0.6.6

4 months ago

0.6.5

4 months ago

0.6.3

4 months ago

0.6.4

4 months ago

0.6.2

4 months ago

0.6.1

4 months ago

0.6.0

5 months ago

0.6.0-alpha.0

5 months ago

0.5.5

5 months ago

0.5.4

6 months ago

0.5.3

6 months ago

0.5.2

6 months ago

0.5.1

7 months ago

0.5.0

7 months ago

0.5.0-beta.1

8 months ago

0.5.0-beta.0

8 months ago

0.5.0-alpha.0

8 months ago

0.4.2

8 months ago

0.4.1

8 months ago

0.4.0

9 months ago

0.4.0-alpha.2

9 months ago

0.4.0-alpha.1

9 months ago

0.4.0-alpha.0

9 months ago

0.3.0

9 months ago

0.3.0-alpha.0

9 months ago

0.3.0-alpha.1

9 months ago

0.2.15

9 months ago

0.2.14

10 months ago

0.2.13

10 months ago

0.2.12

10 months ago

0.2.11

10 months ago

0.2.10

10 months ago

0.2.9

10 months ago