@cloudbase/weda-ui 0.2.16 → 0.2.17

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.
Files changed (86) hide show
  1. package/README.md +39 -170
  2. package/package.json +17 -10
  3. package/src/configs/components/chart/bar.json +711 -0
  4. package/src/configs/components/chart/line.json +666 -0
  5. package/src/configs/components/chart/pie.json +487 -0
  6. package/src/configs/components/listView.json +2 -1
  7. package/src/configs/index.js +7 -0
  8. package/src/mp/components/chart/bar/index.js +254 -0
  9. package/src/mp/components/chart/bar/index.json +6 -0
  10. package/src/mp/components/chart/bar/index.wxml +3 -0
  11. package/src/mp/components/chart/bar/index.wxss +9 -0
  12. package/src/mp/components/chart/common/config/bar.js +50 -0
  13. package/src/mp/components/chart/common/config/global.js +16 -0
  14. package/src/mp/components/chart/common/config/line.js +48 -0
  15. package/src/mp/components/chart/common/config/pie.js +36 -0
  16. package/src/mp/components/chart/common/core/eChartBar.js +262 -0
  17. package/src/mp/components/chart/common/core/eChartBase.js +371 -0
  18. package/src/mp/components/chart/common/core/eChartLine.js +228 -0
  19. package/src/mp/components/chart/common/core/eChartPie.js +166 -0
  20. package/src/mp/components/chart/common/lib/echarts.min.js +18 -0
  21. package/src/mp/components/chart/ec-canvas/ec-canvas.js +277 -0
  22. package/src/mp/components/chart/ec-canvas/ec-canvas.json +4 -0
  23. package/src/mp/components/chart/ec-canvas/ec-canvas.wxml +4 -0
  24. package/src/mp/components/chart/ec-canvas/ec-canvas.wxss +4 -0
  25. package/src/mp/components/chart/ec-canvas/wx-canvas.js +107 -0
  26. package/src/mp/components/chart/line/index.js +243 -0
  27. package/src/mp/components/chart/line/index.json +6 -0
  28. package/src/mp/components/chart/line/index.wxml +3 -0
  29. package/src/mp/components/chart/line/index.wxss +9 -0
  30. package/src/mp/components/chart/pie/index.js +178 -0
  31. package/src/mp/components/chart/pie/index.json +6 -0
  32. package/src/mp/components/chart/pie/index.wxml +4 -0
  33. package/src/mp/components/chart/pie/index.wxss +9 -0
  34. package/src/mp/components/dataView/index.json +1 -1
  35. package/src/mp/components/form/radio/index.js +5 -0
  36. package/src/mp/components/form/select/index.wxml +4 -4
  37. package/src/mp/components/form/textarea/index.wxml +6 -5
  38. package/src/mp/components/form/uploader/index.js +42 -22
  39. package/src/mp/components/form/uploader/index.wxml +15 -3
  40. package/src/mp/components/form/uploaderFile/index.js +58 -30
  41. package/src/mp/components/graphicCard/index.js +26 -28
  42. package/src/mp/components/internals/listView/arrow-right-line.svg +3 -0
  43. package/src/mp/components/internals/listView/index.js +286 -0
  44. package/src/mp/components/internals/listView/index.json +4 -0
  45. package/src/mp/components/internals/listView/index.wxml +40 -0
  46. package/src/mp/components/internals/listView/index.wxss +150 -0
  47. package/src/mp/components/internals/listView/more-line.svg +3 -0
  48. package/src/mp/components/listView/index.js +17 -24
  49. package/src/mp/components/listView/index.wxml +1 -1
  50. package/src/mp/components/navLayout/index.js +3 -3
  51. package/src/mp/index.json +3 -0
  52. package/src/mp/utils/platform.js +15 -0
  53. package/src/setupTests.js +2 -1
  54. package/src/web/components/chart/bar/index.tsx +139 -0
  55. package/src/web/components/chart/common/config/bar.js +49 -0
  56. package/src/web/components/chart/common/config/global.js +16 -0
  57. package/src/web/components/chart/common/config/line.js +50 -0
  58. package/src/web/components/chart/common/config/pie.js +37 -0
  59. package/src/web/components/chart/common/core/eChartBar.js +264 -0
  60. package/src/web/components/chart/common/core/eChartBase.ts +379 -0
  61. package/src/web/components/chart/common/core/eChartLine.js +229 -0
  62. package/src/web/components/chart/common/core/eChartPie.js +170 -0
  63. package/src/web/components/chart/common/core/type.ts +34 -0
  64. package/src/web/components/chart/common/echart.css +106 -0
  65. package/src/web/components/chart/common/echarts.ts +33 -0
  66. package/src/web/components/chart/common/useChart.tsx +69 -0
  67. package/src/web/components/chart/line/index.tsx +135 -0
  68. package/src/web/components/chart/pie/index.tsx +99 -0
  69. package/src/web/components/form/location/components/LocationH5/location.h5.jsx +3 -3
  70. package/src/web/components/form/location/components/LocationPC/location.PC.jsx +2 -2
  71. package/src/web/components/form/select/h5.tsx +3 -1
  72. package/src/web/components/form/select/time.jsx +1 -0
  73. package/src/web/components/form/uploader/uploader.h5.tsx +19 -17
  74. package/src/web/components/form/uploader/uploader.pc.tsx +13 -16
  75. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +35 -37
  76. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +15 -21
  77. package/src/web/components/graphicCard/index.css +1 -5
  78. package/src/web/components/graphicCard/index.tsx +4 -3
  79. package/src/web/components/index.js +5 -2
  80. package/src/web/utils/platform.js +1 -1
  81. package/src/web/utils/tcb.js +3 -15
  82. package/CHANGELOG.md +0 -240
  83. package/src/.DS_Store +0 -0
  84. package/src/configs/.DS_Store +0 -0
  85. package/src/mp/.gitignore +0 -10
  86. package/src/web/.DS_Store +0 -0
@@ -0,0 +1,139 @@
1
+ import React, { useState, useEffect, useRef } from 'react';
2
+ import { CommonPropsType } from '../../../types';
3
+ import { DataSource, Xfield, Yfield } from '../common/core/type';
4
+ import EchartBar from '../common/core/eChartBar';
5
+ import { useWedaChart } from '../common/useChart';
6
+ import classNames from '../../../utils/classnames';
7
+ interface PropsType extends CommonPropsType {
8
+ directionType?: string;
9
+ isPile?: boolean;
10
+ isTitle?: boolean;
11
+ title?: string;
12
+ titleLocation?: string;
13
+ dataSource?: DataSource;
14
+ filterData?: string;
15
+ setColor?: Array<string>;
16
+ xField?: Xfield;
17
+ xStatistics?: string;
18
+ groupKey?: Xfield;
19
+ groupKeyTimeSpan?: string;
20
+ xIsCountEmpty?: boolean;
21
+ yField?: Yfield;
22
+ isLegend?: boolean;
23
+ legend?: string;
24
+ legend2?: string;
25
+ isXaxisName?: boolean;
26
+ xAxisName?: string;
27
+ isXaxisAxisLabelShow?: boolean;
28
+ isXaxisAxisTickShow?: boolean;
29
+ isXaxisAxisLabelRotate?: boolean;
30
+ isYAxisSplitlineLinestyleWidth?: boolean;
31
+ yAxisSplitlineLinestyleType?: string;
32
+ yAxisMax?: number;
33
+ yAxisMin?: number;
34
+ isYAxisName?: boolean;
35
+ yAxisName?: string;
36
+ isSeriesShowSymbol?: boolean;
37
+ isYAxisShow?: boolean;
38
+ isUnit?: boolean;
39
+ unit?: string;
40
+ decimalDigits?: number;
41
+ suffix?: string;
42
+ }
43
+ export default function Bar({
44
+ directionType,
45
+ isPile,
46
+ id,
47
+ style,
48
+ className,
49
+ isTitle,
50
+ title,
51
+ titleLocation,
52
+ dataSource,
53
+ setColor,
54
+ filterData,
55
+ xField,
56
+ xStatistics,
57
+ groupKey,
58
+ groupKeyTimeSpan,
59
+ xIsCountEmpty,
60
+ yField,
61
+ isLegend,
62
+ legend,
63
+ legend2,
64
+ isXaxisName,
65
+ xAxisName,
66
+ isXaxisAxisLabelShow,
67
+ isXaxisAxisTickShow,
68
+ isXaxisAxisLabelRotate,
69
+ isYAxisSplitlineLinestyleWidth,
70
+ yAxisSplitlineLinestyleType,
71
+ yAxisMax,
72
+ yAxisMin,
73
+ isYAxisName,
74
+ yAxisName,
75
+ isSeriesShowSymbol,
76
+ isYAxisShow,
77
+ isUnit,
78
+ unit,
79
+ decimalDigits,
80
+ suffix,
81
+ }: PropsType) {
82
+ const domRef = useRef<HTMLDivElement>();
83
+ useWedaChart(domRef, EchartBar, {
84
+ directionType,
85
+ isPile,
86
+ setColor,
87
+ isTitle,
88
+ title,
89
+ titleLocation,
90
+ dataSource,
91
+ filterData,
92
+ xField,
93
+ xStatistics,
94
+ groupKey,
95
+ groupKeyTimeSpan,
96
+ xIsCountEmpty,
97
+ yField,
98
+ isLegend,
99
+ legend,
100
+ legend2,
101
+ isXaxisName,
102
+ xAxisName,
103
+ isXaxisAxisLabelShow,
104
+ isXaxisAxisTickShow,
105
+ isXaxisAxisLabelRotate,
106
+ isYAxisSplitlineLinestyleWidth,
107
+ yAxisSplitlineLinestyleType,
108
+ yAxisMax,
109
+ yAxisMin,
110
+ isYAxisName,
111
+ yAxisName,
112
+ isSeriesShowSymbol,
113
+ isYAxisShow,
114
+ isUnit,
115
+ unit,
116
+ decimalDigits,
117
+ suffix,
118
+ });
119
+ const inlineStyle = {
120
+ height: '380px',
121
+ width: '100%',
122
+ backgroundColor: '#ffffff',
123
+ ...style,
124
+ };
125
+ return (
126
+ <div
127
+ id={id}
128
+ data-testid="bar"
129
+ ref={domRef}
130
+ style={inlineStyle}
131
+ className={classNames({
132
+ 'weda-ui-chart-bar': true,
133
+ 'echart-wrapper-canvas': true,
134
+ 'echart-dark-body': true,
135
+ [className]: className,
136
+ })}
137
+ />
138
+ );
139
+ }
@@ -0,0 +1,49 @@
1
+ /** 根据当前环境获取 pc 上配置,还是 H5上的配置 */
2
+ const getConfig = () => {
3
+ const barH5 = {
4
+ xAxis: {
5
+ name: 'X轴名',
6
+ nameTextStyle: { align: 'center' },
7
+ axisLabel: {
8
+ show: true, // 刻度标签显示
9
+ rotate: 0, // 字体倾斜
10
+ },
11
+ axisTick: {
12
+ show: true, // 刻度显示
13
+ },
14
+ inverse:false,
15
+ type: 'category',
16
+ data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
17
+ },
18
+ yAxis: {
19
+ type: 'value',
20
+ show: true, // y轴刻度线
21
+ name: 'Y轴名',
22
+ splitLine: {
23
+ lineStyle: {
24
+ width: 1, // 网格线宽度,为0则不显示
25
+ type: 'dashed', //solid,dashed,dotted
26
+ },
27
+ },
28
+ axisLabel: { padding: [0, -10, 0, 0] },
29
+ min: null,
30
+ max: null,
31
+ },
32
+ series: [
33
+ {
34
+ name: 'demo',
35
+ data: [0, 932, 901, 934, 1290, 1330, 1320],
36
+ type: 'bar',
37
+ itemStyle: {
38
+ color: 'green',
39
+ },
40
+ showSymbol: true, //是否显示线条上数据标签
41
+ label: {
42
+ show: true, // 显示线条上的数据
43
+ },
44
+ },
45
+ ],
46
+ };
47
+ return barH5;
48
+ };
49
+ export default getConfig;
@@ -0,0 +1,16 @@
1
+ /** 根据当前环境获取 pc 上配置,还是 H5上的配置 */
2
+ const getConfig = () => {
3
+ const globalH5 = {
4
+ title: {
5
+ text: 'demo实例',
6
+ show: true,
7
+ left: '50%',
8
+ },
9
+ legend: {
10
+ top: '88%',
11
+ },
12
+ tooltip: {},
13
+ };
14
+ return globalH5;
15
+ };
16
+ export default getConfig;
@@ -0,0 +1,50 @@
1
+ /** 根据当前环境获取 pc 上配置,还是 H5上的配置 */
2
+ const getConfig = () => {
3
+ const lineH5 = {
4
+ xAxis: {
5
+ name: 'X轴名',
6
+ nameTextStyle: { align: 'center' },
7
+ axisLabel: {
8
+ show: true, // 刻度标签显示
9
+ rotate: 0, // 字体倾斜
10
+ },
11
+ axisTick: {
12
+ show: true, // 刻度显示
13
+ },
14
+ type: 'category',
15
+ data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
16
+ },
17
+ yAxis: {
18
+ type: 'value',
19
+ show: true, // y轴刻度线
20
+ name: 'Y轴名',
21
+ splitLine: {
22
+ lineStyle: {
23
+ width: 1, // 网格线宽度,为0则不显示
24
+ type: 'dashed', //solid,dashed,dotted
25
+ },
26
+ },
27
+ axisLabel: {
28
+ padding: [0, -10, 0, 0],
29
+ },
30
+ min: null,
31
+ max: null,
32
+ },
33
+ series: [
34
+ {
35
+ name: 'demo',
36
+ connectNulls: true,
37
+ data: [820, 932, 901, 934, 1290, 1330, 1320],
38
+ type: 'line',
39
+ smooth: true,
40
+ showSymbol: true, //是否显示线条上数据标签
41
+ label: {
42
+ show: true, // 显示线条上的数据
43
+ },
44
+ },
45
+ ],
46
+ };
47
+ return lineH5;
48
+ };
49
+
50
+ module.exports = getConfig;
@@ -0,0 +1,37 @@
1
+ /** 根据当前环境获取 pc 上配置,还是 H5上的配置 */
2
+ const getConfig = () => {
3
+ const pieH5 = {
4
+ series: [
5
+ {
6
+ // name: 'demo',
7
+ data: [
8
+ { value: 820, name: '实例数据1', tooltip: {}, itemStyle: {} },
9
+ { value: 932, name: '实例数据2', tooltip: {}, itemStyle: {} },
10
+ { value: 901, name: '实例数据3', tooltip: {}, itemStyle: {} },
11
+ { value: 934, name: '实例数据4', tooltip: {}, itemStyle: {} },
12
+ { value: 1290, name: '实例数据5', tooltip: {}, itemStyle: {} },
13
+ ],
14
+ label: {
15
+ show: true,
16
+ position: 'inner',
17
+ normal: {
18
+ formatter: null,
19
+ position: 'inner',
20
+ },
21
+ },
22
+ type: 'pie',
23
+ radius: '70%',
24
+ emphasis: {
25
+ itemStyle: {
26
+ shadowBlur: 10,
27
+ shadowOffsetX: 0,
28
+ shadowColor: 'rgba(0, 0, 0, 0.5)',
29
+ },
30
+ },
31
+ },
32
+ ],
33
+ };
34
+
35
+ return pieH5;
36
+ };
37
+ export default getConfig;
@@ -0,0 +1,264 @@
1
+ import EchartBase from './eChartBase';
2
+ import getConfig from '../config/bar';
3
+ /**
4
+ * 柱状图表
5
+ * @author loonglong
6
+ **/
7
+ class EchartBar extends EchartBase {
8
+ constructor() {
9
+ super();
10
+ const config = getConfig();
11
+ this.config = { ...this.config, ...config };
12
+ }
13
+ async setSourceData({
14
+ dataSource,
15
+ filterData,
16
+ xField,
17
+ xStatistics,
18
+ xIsCountEmpty,
19
+ groupKey,
20
+ groupKeyTimeSpan,
21
+ yField,
22
+ isPile
23
+ }) {
24
+ const { name = '', type = '', methodName = '' } = dataSource;
25
+ if (name !== '') {
26
+ const params = this.createWhere({
27
+ filterData,
28
+ xField,
29
+ xStatistics,
30
+ xIsCountEmpty,
31
+ groupKey,
32
+ groupKeyTimeSpan,
33
+ yField,
34
+ });
35
+ const arrSourData = await this.getSourceData(
36
+ name,
37
+ methodName,
38
+ type,
39
+ params,
40
+ );
41
+ // 获取 x 轴数据
42
+ const arrXaxisData = this.setXaxis(arrSourData, xField.format);
43
+ const arrXisCountEmptyIndex = []; // 记录空值的key
44
+ if (!groupKey) {
45
+ const numLine = arrSourData[0].YLabels.length;
46
+ if (numLine > 0) {
47
+ for (let j = 0; j < numLine; j++) {
48
+ this.config.series[j] = {
49
+ type: 'bar',
50
+ name: '',
51
+ stack: isPile ? 'pile' : null,
52
+ itemStyle: { color: null },
53
+ showSymbol: true,
54
+ label: {
55
+ show: true,
56
+ },
57
+ data: [],
58
+ };
59
+ arrSourData.forEach((itemSource,index) => {
60
+ this.config.series[j].name = itemSource.YLabels[j].Cn_Name;
61
+ if ((!itemSource.YLabels[j].Value || itemSource.YLabels[j].Value === 0 || itemSource.YLabels[j].Value === null) && !xIsCountEmpty) {
62
+ arrXisCountEmptyIndex.push(index);
63
+ } else {
64
+ const value = itemSource.YLabels[j].Value ? itemSource.YLabels[j].Value : 0;
65
+ this.config.series[j].data.push(value);
66
+ }
67
+ });
68
+ }
69
+ }
70
+ // 处理显示空值问题
71
+ this.setEmptyValue(xIsCountEmpty);
72
+ } else if (groupKey) {
73
+ // 如果是分组,则这里需要特殊处理
74
+ // 按groupKey分组存放数据值
75
+ const objGroupKey = {}; // {'分组字段':[{value:'统计的值', dimensionality:'维度名', name:'统计的数值字段名'}]}
76
+ arrSourData.forEach((itemSourData) => {
77
+ itemSourData.YLabels.forEach((yLabel) => {
78
+ if (!objGroupKey[yLabel.Group_Name]) {
79
+ objGroupKey[yLabel.Group_Name] = [];
80
+ }
81
+ objGroupKey[yLabel.Group_Name].push({
82
+ value: yLabel.Value,
83
+ dimensionality: itemSourData.XLabel.Value,
84
+ name: yLabel.Cn_Name,
85
+ });
86
+ });
87
+ });
88
+
89
+
90
+ // 组装图表需要的数据
91
+ const arrGroupKey = Object.keys(objGroupKey);
92
+ this.config.series = arrGroupKey.map((groupKey) => {
93
+ // groupKey分组字段中文名
94
+ const serie = {
95
+ name: groupKey,
96
+ type: 'bar',
97
+ itemStyle: {
98
+ color: null,
99
+ },
100
+ showSymbol: true,
101
+ label: {
102
+ show: true,
103
+ },
104
+ data: this.getSeriesDataGroup(
105
+ arrXaxisData,
106
+ objGroupKey[groupKey],
107
+ ),
108
+ stack: isPile ? 'pile' : null,
109
+ };
110
+ return serie;
111
+ });
112
+ this.config.tooltip.formatter = params => (
113
+ `${params.data.dimensionality
114
+ }\r\n${
115
+ params.data.name
116
+ }\r\n${
117
+ params.seriesName
118
+ }:${
119
+ params.value}`
120
+ );
121
+ }
122
+ }
123
+ }
124
+ setColor({ setColor }) {
125
+ if (this.config.series.length > 0 && setColor && setColor.length > 0) {
126
+ let i = 0;
127
+ this.config.series.forEach((itemSeries) => {
128
+ itemSeries.itemStyle.color = setColor[i % 6];
129
+ i = i + 1;
130
+ });
131
+ }
132
+ }
133
+
134
+ // 显示图表上的数据标签 单位,标签,小数位数,后缀
135
+ setIsSeriesShowSymbol({
136
+ isSeriesShowSymbol,
137
+ isUnit,
138
+ unit,
139
+ decimalDigits,
140
+ suffix
141
+ }) {
142
+ decimalDigits = Math.max(0, decimalDigits);
143
+ this.config.series.length > 0
144
+ && this.config.series.forEach((itemSeries) => {
145
+ itemSeries.showSymbol = isSeriesShowSymbol;
146
+ itemSeries.label.show = isSeriesShowSymbol;
147
+ if (isUnit) {
148
+ itemSeries.label.formatter = (params) => {
149
+ const objNewValue = this.getValueByUnit(params.value, unit);
150
+ return (
151
+ `${objNewValue.toFixed(decimalDigits)}${suffix}`
152
+ );
153
+ };
154
+ }
155
+ });
156
+ if (isUnit) {
157
+ this.config.yAxis.axisLabel.formatter = (value) => {
158
+ const objNewValue = this.getValueByUnit(value, unit);
159
+ return `${objNewValue.toFixed(decimalDigits)}${suffix}`;
160
+ };
161
+ } else {
162
+ this.config.yAxis.axisLabel.formatter = null;
163
+ }
164
+ }
165
+
166
+ // 设置柱状图X,Y倒转
167
+ setDirectionType({directionType}) {
168
+ let temAxis = {};
169
+ if (directionType === 'crosswise') { // 横向
170
+ temAxis = this.config.xAxis;
171
+ // @ts-ignore
172
+ this.config.xAxis = this.config.yAxis;
173
+ // @ts-ignore
174
+ this.config.yAxis = temAxis;
175
+ this.config.yAxis.inverse = true;
176
+
177
+ } else { // 纵向
178
+ if (this.config.yAxis.inverse) {
179
+ temAxis = this.config.yAxis;
180
+ // @ts-ignore
181
+ this.config.yAxis = this.config.xAxis;
182
+ // @ts-ignore
183
+ this.config.xAxis = temAxis;
184
+ this.config.xAxis.inverse = false;
185
+ }
186
+ }
187
+ }
188
+ async setOptions({
189
+ directionType,
190
+ isPile,
191
+ setColor,
192
+ isTitle,
193
+ title,
194
+ titleLocation,
195
+ dataSource,
196
+ filterData,
197
+ xField,
198
+ xStatistics,
199
+ groupKey,
200
+ groupKeyTimeSpan,
201
+ xIsCountEmpty,
202
+ yField,
203
+ isLegend,
204
+ legend,
205
+ legend2,
206
+ isXaxisName,
207
+ xAxisName,
208
+ isXaxisAxisLabelShow,
209
+ isXaxisAxisTickShow,
210
+ isXaxisAxisLabelRotate,
211
+ isYAxisSplitlineLinestyleWidth,
212
+ yAxisSplitlineLinestyleType,
213
+ yAxisMax,
214
+ yAxisMin,
215
+ isYAxisName,
216
+ yAxisName,
217
+ isSeriesShowSymbol,
218
+ isYAxisShow,
219
+ isUnit,
220
+ unit,
221
+ decimalDigits,
222
+ suffix
223
+ }) {
224
+ legend = document.body.clientWidth < 1024 ? legend : legend2;
225
+ if (dataSource) {
226
+ await this.setSourceData({
227
+ dataSource,
228
+ filterData,
229
+ xField,
230
+ xStatistics,
231
+ xIsCountEmpty,
232
+ groupKey,
233
+ groupKeyTimeSpan,
234
+ yField,
235
+ isPile
236
+ });
237
+ }
238
+ this.setColor({ setColor });
239
+ this.setTitle({ isTitle, title, titleLocation });
240
+ this.setLegend({ isLegend, legend });
241
+ this.setIsXaxisAxisLabelShow({ isXaxisAxisLabelShow });
242
+ this.setIsXaxisName({ isXaxisName, xAxisName });
243
+ this.setIsXaxisAxisTickShow({ isXaxisAxisTickShow });
244
+ this.setIsXaxisAxisLabelRotate({ isXaxisAxisLabelRotate, xStatistics });
245
+ this.setIsYAxisSplitlineLinestyleWidth({
246
+ isYAxisSplitlineLinestyleWidth,
247
+ yAxisSplitlineLinestyleType,
248
+ });
249
+ this.setYAxisMaxMin({ yAxisMax, yAxisMin });
250
+ this.setIsYAxisName({ isYAxisName, yAxisName });
251
+ this.setIsYAxisShow({ isYAxisShow });
252
+ this.setIsSeriesShowSymbol({
253
+ isSeriesShowSymbol,
254
+ isUnit,
255
+ unit,
256
+ decimalDigits,
257
+ suffix
258
+ });
259
+ this.setDirectionType({directionType});
260
+ return this.config;
261
+ }
262
+ }
263
+
264
+ export default EchartBar;