win-chart 2.9.0 → 2.9.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/dist/index.d.ts +1 -151
- package/dist/types/components/WinChart.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,157 +3,7 @@ export { echarts$1 as echarts };
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import React$1 from 'react';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
* 标准图表数据
|
|
8
|
-
*/
|
|
9
|
-
interface IChartInfo$1 {
|
|
10
|
-
label?: string;
|
|
11
|
-
value: number;
|
|
12
|
-
type?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface IWinChartProps$1 {
|
|
16
|
-
theme?: 'light' | 'dark';
|
|
17
|
-
sort?: 'asc' | 'desc';
|
|
18
|
-
showLabel?: boolean;
|
|
19
|
-
color?: string[];
|
|
20
|
-
chartType?: WinChartType$1;
|
|
21
|
-
xAxisLabelRotate?: number;
|
|
22
|
-
xAxisLabelLength?: number;
|
|
23
|
-
data?: IChartInfo$1[];
|
|
24
|
-
extraData?: IChartInfo$1[];
|
|
25
|
-
className?: string;
|
|
26
|
-
style?: React.CSSProperties;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* label 与 type 取值互换 (只作用饼图、环图、雷达图图表)
|
|
30
|
-
*/
|
|
31
|
-
reserveValueWithLabelType?: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Y 轴起始值
|
|
35
|
-
*/
|
|
36
|
-
yStart?: number[];
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* series 配置 (对原有 series 配置补充,name 为匹配字段,必填,取值为 IChartInfo 中的 type 字段)
|
|
40
|
-
*/
|
|
41
|
-
extraSeriesOption?: echarts.SeriesOption[];
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* 自定义配置,优先级最高,会覆盖默认配置(采用deepmerge,只覆盖差异部分)
|
|
45
|
-
*/
|
|
46
|
-
extraOption?: echarts.EChartsOption;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 环图中心部份配置
|
|
50
|
-
*/
|
|
51
|
-
cycleCenterConfig?: {
|
|
52
|
-
/**
|
|
53
|
-
* 标题(默认为统计)
|
|
54
|
-
*/
|
|
55
|
-
title?: ICenterConfig$1;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* 内容(默认为合计值)
|
|
59
|
-
*/
|
|
60
|
-
content?: ICenterConfig$1;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* 堆叠总计
|
|
65
|
-
*/
|
|
66
|
-
showStackTotal?: boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
interface ICenterConfig$1 {
|
|
70
|
-
/**
|
|
71
|
-
* 自定义统计显示内容
|
|
72
|
-
*/
|
|
73
|
-
value?: string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* 距离头部高度
|
|
77
|
-
*/
|
|
78
|
-
top?: number | string;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* 字体大小
|
|
82
|
-
*/
|
|
83
|
-
fontSize?: string | number;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* 图表类型
|
|
88
|
-
*/
|
|
89
|
-
declare enum WinChartType$1 {
|
|
90
|
-
/**
|
|
91
|
-
* MINI面积图
|
|
92
|
-
*/
|
|
93
|
-
MINI_AREA,
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* 面积图
|
|
97
|
-
*/
|
|
98
|
-
AREA,
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* 双轴图
|
|
102
|
-
*/
|
|
103
|
-
DUAL_LINE_BAR,
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* 堆叠双轴图
|
|
107
|
-
*/
|
|
108
|
-
STACK_DUAL_LINE_BAR,
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* 柱状图
|
|
112
|
-
*/
|
|
113
|
-
COLUMN,
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* 堆叠柱状图
|
|
117
|
-
*/
|
|
118
|
-
STACK_COLUMN,
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 折线图
|
|
122
|
-
*/
|
|
123
|
-
LINE,
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* 条形图
|
|
127
|
-
*/
|
|
128
|
-
BAR,
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* 堆叠条形图
|
|
132
|
-
*/
|
|
133
|
-
STACK_BAR,
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* 漏斗图
|
|
137
|
-
*/
|
|
138
|
-
FUNNEL,
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* 饼图
|
|
142
|
-
*/
|
|
143
|
-
PIE,
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* 环形图
|
|
147
|
-
*/
|
|
148
|
-
CYCLE,
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* 雷达图
|
|
152
|
-
*/
|
|
153
|
-
RADAR,
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
declare const WinChart: (props: IWinChartProps$1) => react_jsx_runtime.JSX.Element;
|
|
6
|
+
declare const WinChart: (props: IWinChartProps) => react_jsx_runtime.JSX.Element;
|
|
157
7
|
|
|
158
8
|
/**
|
|
159
9
|
* 标准图表数据
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IWinChartProps } from '
|
|
1
|
+
import { IWinChartProps } from '..';
|
|
2
2
|
export declare const WinChart: (props: IWinChartProps) => import("react/jsx-runtime").JSX.Element;
|