API 參考

@univerjs-pro/pivot-chart

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。

Host-independent PivotChart definitions, runtime, and conversion of a PivotView into chart data. This is a library, not a plugin to register.

TypeScript
import type { IPivotChartDefinition, PivotChartTypeString } from '@univerjs-pro/pivot-chart'import { isPivotChartTypeString, PivotChartSourceKind } from '@univerjs-pro/pivot-chart'

An owned definition carries cacheRef and pivotModel. A linked definition carries pivotTableRef; its report remains owned by the referenced PivotTable. Use @univerjs-pro/sheets-pivot-chart to host these definitions in Sheets.

Supported types include line, column, bar, area, pie, doughnut, and combination charts, including the supported stacked variants. Check isPivotChartTypeString() before accepting an arbitrary type. Scatter, bubble, radar, and waterfall are not supported PivotChart types.

Chart data uses the final PivotView after filtering, aggregation, and Show Data As. Subtotals and grand totals do not become chart categories. Pie charts use the first materialized value series; doughnut charts preserve multiple series as concentric rings.

This package has no stylesheet, locales, or Facade entry.

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.