@univerjs-pro/pivot-chart
v1.0.3
Published
Host-neutral pivot chart domain for Univer Pro.
Readme
@univerjs-pro/pivot-chart
@univerjs-pro/pivot-chart is part of Univer Pro. It contains the host-independent model contracts used by Univer Pro pivot charts.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs-pro/pivot-chart | UniverProPivotChart | No | No | No |
Installation
pnpm add @univerjs-pro/pivot-chart
# or
npm install @univerjs-pro/pivot-chartKeep all @univerjs/* and @univerjs-pro/* packages on the same version.
Usage
import type { IPivotChartDefinition } from '@univerjs-pro/pivot-chart';Use IPivotChartDefinition for persisted PivotChart definitions. An owned chart carries cacheRef and pivotModel; a linked chart carries pivotTableRef instead. Use @univerjs-pro/sheets-pivot-chart for Sheet-hosted runtime integration.
Integration Notes
- Pivot Cache providers are supplied by host packages through the
@univerjs-pro/pivot-cachecontract. - This package does not own Sheet, Doc, Slide, Drawing, or UI state.
- Pie, Pie-of-Pie, and Bar-of-Pie use the first materialized value series. A host UI should make additional series visible to the user instead of silently implying that every series is plotted.
- Doughnut charts preserve multiple materialized value series and render them as concentric rings.
- PivotChart category and series data comes from the final PivotView, after filtering, aggregation, and Show Data As. Subtotals and grand totals are not emitted as chart categories.
