@univerjs-pro/sheets-chart
TypeScript icon, indicating that this package has built-in type declarations

0.6.10 • Public • Published

ChartPlugin

npm version license CSS Included i18n

Installation

Chart Feature provide the ability to insert floating charts based on range data in spreadsheets.

This feature includes the following plugin packages:

  • @univerjs-pro/sheets-chart - Chart plugin
  • @univerjs-pro/sheets-chart-ui - Chart UI plugin
npm install @univerjs-pro/sheets-chart @univerjs-pro/sheets-chart-ui

Usage

import { LocaleType, merge, Univer } from '@univerjs/core';
import { defaultTheme } from "@univerjs/design";
import { UniverSheetsChartPlugin } from '@univerjs-pro/sheets-chart';
import { UniverSheetsChartUIPlugin } from '@univerjs-pro/sheets-chart-ui';
import SheetsChartZhCN from '@univerjs-pro/sheets-chart/locale/zh-CN';
import SheetsChartUIZhCN from '@univerjs-pro/sheets-chart-ui/locale/zh-CN';

import '@univerjs-pro/sheets-chart-ui/lib/index.css';

const univer = new Univer({
  theme: defaultTheme,
  locale: LocaleType.ZH_CN,
  locales: {
    [LocaleType.ZH_CN]: merge(
      {},
      SheetsChartZhCN,
      SheetsChartUIZhCN
    ),
  },
});

univer.registerPlugin(UniverSheetsChartPlugin);
univer.registerPlugin(UniverSheetsChartUIPlugin);

Readme

Keywords

Package Sidebar

Install

npm i @univerjs-pro/sheets-chart

Homepage

univer.ai

Weekly Downloads

1,924

Version

0.6.10

License

none

Unpacked Size

225 kB

Total Files

57

Last publish

Collaborators

  • jikkai
  • hexf00
  • mengshukeji
  • wendellhu95