Skip to content

Commit 5352fa2

Browse files
committed
gauge chart constants updated
1 parent d33b29c commit 5352fa2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

client/packages/lowcoder-comps/src/comps/gaugeChartComp/gaugeChartConstants.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { SeriesListComp } from "../chartComp/seriesComp";
3131
import { EChartsOption } from "echarts";
3232
import { i18nObjs, trans } from "i18n/comps";
3333
import { GaugeChartConfig } from "../chartComp/chartConfigs/gaugeChartConfig";
34+
import { EchartsTitleConfig } from "comps/chartComp/chartConfigs/echartsTitleConfig";
3435

3536
export const ChartTypeOptions = [
3637
{
@@ -253,9 +254,18 @@ const chartJsonModeChildren = {
253254
echartsLegendConfig: EchartsLegendConfig,
254255
echartsLabelConfig: EchartsLabelConfig,
255256
echartsConfig: EchartsOptionComp,
257+
echartsTitleConfig:EchartsTitleConfig,
256258
style: styleControl(EchartsStyle),
257259
tooltip: withDefault(BoolControl, true),
258260
legendVisibility: withDefault(BoolControl, true),
261+
label: withDefault(BoolControl, true),
262+
left:withDefault(NumberControl,trans('gaugeChart.defaultLeft')),
263+
top:withDefault(NumberControl,trans('gaugeChart.defaultTop')),
264+
bottom:withDefault(NumberControl,trans('gaugeChart.defaultBottom')),
265+
width:withDefault(NumberControl,trans('gaugeChart.defaultWidth')),
266+
min:withDefault(NumberControl,trans('gaugeChart.defaultMin')),
267+
max:withDefault(NumberControl,trans('gaugeChart.defaultMax')),
268+
gap:withDefault(NumberControl,trans('gaugeChart.defaultGap'))
259269
}
260270

261271
const chartMapModeChildren = {

0 commit comments

Comments
 (0)