Skip to content

Commit 59247a9

Browse files
committed
chart comp
1 parent 87546be commit 59247a9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

client/packages/lowcoder-comps/src/comps/chartComp/chartComp.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
ThemeContext,
2929
chartColorPalette,
3030
getPromiseAfterDispatch,
31+
dropdownControl
3132
} from "lowcoder-sdk";
3233
import { getEchartsLocale, trans } from "i18n/comps";
3334
import { ItemColorComp } from "comps/chartComp/chartConfigs/lineChartConfig";
@@ -42,8 +43,15 @@ import log from "loglevel";
4243

4344
let clickEventCallback = () => {};
4445

46+
const chartModeOptions = [
47+
{
48+
label: trans("chart.UIMode"),
49+
value: "ui",
50+
}
51+
] as const;
52+
4553
let ChartTmpComp = (function () {
46-
return new UICompBuilder(chartChildrenMap, () => null)
54+
return new UICompBuilder({mode:dropdownControl(chartModeOptions,'ui'),...chartChildrenMap}, () => null)
4755
.setPropertyViewFn(chartPropertyView)
4856
.build();
4957
})();

0 commit comments

Comments
 (0)