@univerjs-pro/sheets-chart 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -7
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/commands/mutations/sheets-chart.mutation.d.ts +1 -0
- package/lib/types/common/util.d.ts +6 -0
- package/lib/types/extra/func.d.ts +1 -0
- package/lib/types/extra/reverse.d.ts +64 -0
- package/lib/types/index.d.ts +4 -5
- package/lib/types/models/constants/build-in-theme/types.d.ts +1 -1
- package/lib/types/models/constants/default-chart-style.d.ts +7 -2
- package/lib/types/models/style.types.d.ts +22 -12
- package/lib/types/models/types.d.ts +5 -3
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -6
- /package/lib/types/models/data-context-transformers/{percent-data-conext-transformer.d.ts → percent-data-context-transformer.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,16 +1,49 @@
|
|
|
1
1
|
# ChartPlugin
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/packages/@univerjs-pro/sheets-chart-ui)
|
|
4
|
+
[](https://img.shields.io/npm/l/@univerjs-pro/sheets-chart-ui)
|
|
5
|
+

|
|
6
|
+

|
|
5
7
|
|
|
6
|
-
## Introduction
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
### Installation
|
|
10
|
+
|
|
11
|
+
Chart Feature provide the ability to insert floating charts based on range data in spreadsheets.
|
|
12
|
+
|
|
13
|
+
This feature includes the following plugin packages:
|
|
14
|
+
|
|
15
|
+
- `@univerjs-pro/sheets-chart` - Chart plugin
|
|
16
|
+
- `@univerjs-pro/sheets-chart-ui` - Chart UI plugin
|
|
17
|
+
|
|
18
|
+
```shell npm2yarn
|
|
19
|
+
npm install @univerjs-pro/sheets-chart @univerjs-pro/sheets-chart-ui
|
|
20
|
+
```
|
|
21
|
+
|
|
9
22
|
|
|
10
23
|
## Usage
|
|
11
24
|
|
|
12
|
-
|
|
25
|
+
```typescript
|
|
26
|
+
import { LocaleType, merge, Univer } from '@univerjs/core';
|
|
27
|
+
import { defaultTheme } from "@univerjs/design";
|
|
28
|
+
import { UniverSheetsChartPlugin } from '@univerjs-pro/sheets-chart';
|
|
29
|
+
import { UniverSheetsChartUIPlugin } from '@univerjs-pro/sheets-chart-ui';
|
|
30
|
+
import SheetsChartZhCN from '@univerjs-pro/sheets-chart/locale/zh-CN';
|
|
31
|
+
import SheetsChartUIZhCN from '@univerjs-pro/sheets-chart-ui/locale/zh-CN';
|
|
32
|
+
|
|
33
|
+
import '@univerjs-pro/sheets-chart-ui/lib/index.css';
|
|
34
|
+
|
|
35
|
+
const univer = new Univer({
|
|
36
|
+
theme: defaultTheme,
|
|
37
|
+
locale: LocaleType.ZH_CN,
|
|
38
|
+
locales: {
|
|
39
|
+
[LocaleType.ZH_CN]: merge(
|
|
40
|
+
{},
|
|
41
|
+
SheetsChartZhCN,
|
|
42
|
+
SheetsChartUIZhCN
|
|
43
|
+
),
|
|
44
|
+
},
|
|
45
|
+
});
|
|
13
46
|
|
|
14
|
-
|
|
15
|
-
|
|
47
|
+
univer.registerPlugin(UniverSheetsChartPlugin);
|
|
48
|
+
univer.registerPlugin(UniverSheetsChartUIPlugin);
|
|
16
49
|
```
|