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.