Skip to content

Commit 5ac3aa4

Browse files
committed
funnel chart utils updated
1 parent caca39d commit 5ac3aa4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartUtils.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function getEchartsConfig(props: EchartsConfigProps, chartSize?: ChartSiz
134134
"title": {
135135
"text": props.echartsTitle,
136136
'top': props.echartsLegendConfig.top === 'bottom' ?'top':'bottom',
137-
"left":"center"
137+
"left":props.echartsTitleConfig.top
138138
},
139139
"backgroundColor": props?.style?.background,
140140
"color": props.echartsOption.data?.map(data => data.color),
@@ -150,15 +150,15 @@ export function getEchartsConfig(props: EchartsConfigProps, chartSize?: ChartSiz
150150
{
151151
"name": props.echartsConfig.type,
152152
"type": props.echartsConfig.type,
153-
"left": "10%",
154-
"top": 60,
155-
"bottom": 60,
156-
"width": "80%",
157-
"min": 0,
158-
"max": 100,
159-
"gap": 2,
153+
"left": `${props.left}%`,
154+
"top": props.top,
155+
"bottom": props.bottom,
156+
"width": `${props.left}%`,
157+
"min": props.min,
158+
"max": props.max,
159+
"gap": props.gap,
160160
"label": {
161-
"show": true,
161+
"show": props.label,
162162
"position": props.echartsLabelConfig.top
163163
},
164164
"data": props.echartsOption.data

0 commit comments

Comments
 (0)