File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed
client/packages/lowcoder-comps/src Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import { ScatterChartConfig } from "../chartComp/chartConfigs/scatterChartConfig
30
30
import { SeriesListComp } from "../chartComp/seriesComp" ;
31
31
import { EChartsOption } from "echarts" ;
32
32
import { i18nObjs , trans } from "i18n/comps" ;
33
- import { FunnelChartConfig } from "../chartComp/chartConfigs/funnelChartConfig" ;
33
+ import { FunnelChartConfig } from "../chartComp/chartConfigs/funnelChartConfig" ;
34
34
import { EchartsTitleConfig } from "comps/chartComp/chartConfigs/echartsTitleConfig" ;
35
35
36
36
export const ChartTypeOptions = [
@@ -265,7 +265,8 @@ let chartJsonModeChildren: any = {
265
265
width :withDefault ( NumberControl , trans ( 'funnelChart.defaultWidth' ) ) ,
266
266
min :withDefault ( NumberControl , trans ( 'funnelChart.defaultMin' ) ) ,
267
267
max :withDefault ( NumberControl , trans ( 'funnelChart.defaultMax' ) ) ,
268
- gap :withDefault ( NumberControl , trans ( 'funnelChart.defaultGap' ) )
268
+ gap :withDefault ( NumberControl , trans ( 'funnelChart.defaultGap' ) ) ,
269
+ opacity :withDefault ( NumberControl , trans ( 'funnelChart.defaultOpacity' ) )
269
270
}
270
271
if ( EchartsStyle ) {
271
272
chartJsonModeChildren = {
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export function funnelChartPropertyView(
41
41
{ children . min . propertyView ( { label : trans ( "funnelChart.min" ) } ) }
42
42
{ children . max . propertyView ( { label : trans ( "funnelChart.max" ) } ) }
43
43
{ children . gap . propertyView ( { label : trans ( "funnelChart.gap" ) } ) }
44
+ { children . opacity . propertyView ( { label : trans ( "funnelChart.opacity" ) } ) }
44
45
{ children . echartsTitle . propertyView ( { label : trans ( "funnelChart.title" ) } ) }
45
46
{ children . tooltip . propertyView ( { label : trans ( "funnelChart.tooltip" ) } ) }
46
47
{ children . label . propertyView ( { label : trans ( "funnelChart.label" ) } ) }
Original file line number Diff line number Diff line change @@ -161,6 +161,9 @@ export function getEchartsConfig(
161
161
"min" : props . min ,
162
162
"max" : props . max ,
163
163
"gap" : props . gap ,
164
+ "itemStyle" : {
165
+ "opacity" : props . opacity
166
+ } ,
164
167
"label" : {
165
168
"show" : props . label ,
166
169
"position" : props . echartsLabelConfig . top
Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ export const en = {
80
80
gap : 'Gap' ,
81
81
defaultGap : '2' ,
82
82
label :'Label' ,
83
+ opacity : 'Opacity' ,
84
+ defaultOpacity : '1' ,
85
+
83
86
} ,
84
87
gaugeChart : {
85
88
title : 'Title' ,
You can’t perform that action at this time.
0 commit comments