Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8b54bd commit 96e24dcCopy full SHA for 96e24dc
‎client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/treeChartConfig.tsx
@@ -0,0 +1,31 @@
1
+import {
2
+ BoolControl,
3
+ MultiCompBuilder,
4
+ showLabelPropertyView,
5
+} from "lowcoder-sdk";
6
+import { TreeSeriesOption } from "echarts";
7
+import { trans } from "i18n/comps";
8
+
9
+export const TreeChartConfig = (function () {
10
+ return new MultiCompBuilder(
11
+ {
12
+ showLabel: BoolControl,
13
+ },
14
+ (props): TreeSeriesOption => {
15
+ const config: TreeSeriesOption = {
16
+ type: "tree",
17
+ };
18
+ return config;
19
+ }
20
+ )
21
+ .setPropertyViewFn((children) => (
22
+ <>
23
+ {showLabelPropertyView(children)}
24
+ {children.type.propertyView({
25
+ label: trans("treeChart.treeType"),
26
+ radioButton: true,
27
+ })}
28
+ </>
29
+ ))
30
+ .build();
31
+})();
0 commit comments