@@ -1251,6 +1260,54 @@ const isGroupBar = computed(() => {
{{ t('chart.show_gap') }}
+
+
+ 转化率
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/core/core-frontend/src/views/chart/components/editor/util/chart.ts b/core/core-frontend/src/views/chart/components/editor/util/chart.ts
index 465c81107f..3457ea031e 100644
--- a/core/core-frontend/src/views/chart/components/editor/util/chart.ts
+++ b/core/core-frontend/src/views/chart/components/editor/util/chart.ts
@@ -324,7 +324,12 @@ export const DEFAULT_LABEL: ChartLabelAttr = {
showDimension: true,
showQuota: false,
showProportion: true,
- seriesLabelFormatter: []
+ seriesLabelFormatter: [],
+ conversionTag: {
+ show: false,
+ precision: 2,
+ text: '转化率'
+ }
}
export const DEFAULT_TOOLTIP: ChartTooltipAttr = {
show: true,
diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/funnel.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/funnel.ts
index 0f9aa41d82..35d1b652e1 100644
--- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/funnel.ts
+++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/funnel.ts
@@ -1,8 +1,10 @@
import type { FunnelOptions, Funnel as G2Funnel } from '@antv/g2plot/esm/plots/funnel'
import { G2PlotChartView, G2PlotDrawOptions } from '../../types/impl/g2plot'
-import { flow, setUpSingleDimensionSeriesColor } from '@/views/chart/components/js/util'
+import { flow, parseJson, setUpSingleDimensionSeriesColor } from '@/views/chart/components/js/util'
import { getPadding } from '../../common/common_antv'
import { useI18n } from '@/hooks/web/useI18n'
+import { Datum } from '@antv/g2plot/esm/types/common'
+import { valueFormatter } from '@/views/chart/components/js/formatter'
const { t } = useI18n()
@@ -23,7 +25,7 @@ export class Funnel extends G2PlotChartView