Skip to content

Commit 0bd9122

Browse files
committed
Added opacity in Funnel Chart.
1 parent b0a8dcc commit 0bd9122

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartConstants.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { ScatterChartConfig } from "../chartComp/chartConfigs/scatterChartConfig
3030
import { SeriesListComp } from "../chartComp/seriesComp";
3131
import { EChartsOption } from "echarts";
3232
import { i18nObjs, trans } from "i18n/comps";
33-
import { FunnelChartConfig } from "../chartComp/chartConfigs/funnelChartConfig";
33+
import { FunnelChartConfig} from "../chartComp/chartConfigs/funnelChartConfig";
3434
import { EchartsTitleConfig } from "comps/chartComp/chartConfigs/echartsTitleConfig";
3535

3636
export const ChartTypeOptions = [
@@ -265,7 +265,8 @@ let chartJsonModeChildren: any = {
265265
width:withDefault(NumberControl,trans('funnelChart.defaultWidth')),
266266
min:withDefault(NumberControl,trans('funnelChart.defaultMin')),
267267
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'))
269270
}
270271
if (EchartsStyle) {
271272
chartJsonModeChildren = {

client/packages/lowcoder-comps/src/comps/funnelChartComp/funnelChartPropertyView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function funnelChartPropertyView(
4141
{children.min.propertyView({ label: trans("funnelChart.min") })}
4242
{children.max.propertyView({ label: trans("funnelChart.max") })}
4343
{children.gap.propertyView({ label: trans("funnelChart.gap") })}
44+
{children.opacity.propertyView({ label: trans("funnelChart.opacity") })}
4445
{children.echartsTitle.propertyView({ label: trans("funnelChart.title") })}
4546
{children.tooltip.propertyView({label: trans("funnelChart.tooltip")})}
4647
{children.label.propertyView({label: trans("funnelChart.label")})}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ export function getEchartsConfig(
161161
"min": props.min,
162162
"max": props.max,
163163
"gap": props.gap,
164+
"itemStyle": {
165+
"opacity": props.opacity
166+
},
164167
"label": {
165168
"show": props.label,
166169
"position": props.echartsLabelConfig.top

client/packages/lowcoder-comps/src/i18n/comps/locales/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ export const en = {
8080
gap: 'Gap',
8181
defaultGap: '2',
8282
label:'Label',
83+
opacity: 'Opacity',
84+
defaultOpacity: '1',
85+
8386
},
8487
gaugeChart: {
8588
title: 'Title',

0 commit comments

Comments
 (0)