@univerjs-pro/sheets-chart-ui
v1.5.2
Published
Chart UI integration for Univer Sheets.
Readme
@univerjs-pro/sheets-chart-ui
@univerjs-pro/sheets-chart-ui is part of Univer Pro. Chart UI integration for Univer Sheets.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs-pro/sheets-chart-ui | UniverProSheetsChartUi | Yes | Yes | No | No |
Installation
pnpm add @univerjs-pro/sheets-chart-ui
# or
npm install @univerjs-pro/sheets-chart-uiUsage
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 '@univerjs-pro/sheets-chart-ui/lib/index.css';
import EnUS from '@univerjs-pro/sheets-chart-ui/locale/en-US';
import { UniverSheetsChartUIPlugin } from '@univerjs-pro/sheets-chart-ui';
univer.registerPlugin(UniverSheetsChartUIPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.Integration Notes
- Import the package stylesheet once in the application entry before rendering Univer UI.
- Import locale files only for the languages your application enables.
- Register
UniverSheetsChartUIPluginbefore creating a workbook. Chart Sheet presentation, viewport fitting, drawing constraints, and Move Chart controls are built into this plugin. - The plugin's declared dependencies load the chart model and Formula UI global range selector. Node.js changeset replay requires only
@univerjs-pro/sheets-chart.
