@univerjs-pro/sheets-chart
v1.6.2
Published
Chart model integration for Univer Sheets.
Readme
@univerjs-pro/sheets-chart
@univerjs-pro/sheets-chart is part of Univer Pro. Chart model integration for Univer Sheets.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs-pro/sheets-chart | UniverProSheetsChart | No | Yes | Yes | No |
Installation
pnpm add @univerjs-pro/sheets-chart
# or
npm install @univerjs-pro/sheets-chartUsage
Start with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import EnUS from '@univerjs-pro/sheets-chart/locale/en-US';
import { UniverSheetsChartPlugin } from '@univerjs-pro/sheets-chart';
univer.registerPlugin(UniverSheetsChartPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.Integration Notes
- Import locale files only for the languages your application enables.
- Use the facade entry when integrating through Univer Facade APIs.
- Register
UniverSheetsChartPluginbefore creating a workbook or replaying changesets. Chart Sheet model lifecycle, conversion commands, primary-chart policy, and compact sheet snapshots are built into this plugin. - The model package supports browser and Node.js runtimes without registering a UI plugin. Browser applications can add
@univerjs-pro/sheets-chart-uifor Chart Sheet presentation and Move Chart controls.
