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 fed8568 commit 4972d9cCopy full SHA for 4972d9c
‎client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs/graphChartConfig.tsx
@@ -0,0 +1,31 @@
1
+import {
2
+ BoolControl,
3
+ MultiCompBuilder,
4
+ showLabelPropertyView,
5
+} from "lowcoder-sdk";
6
+import { GraphSeriesOption } from "echarts";
7
+import { trans } from "i18n/comps";
8
+
9
+export const GraphChartConfig = (function () {
10
+ return new MultiCompBuilder(
11
+ {
12
+ showLabel: BoolControl,
13
+ },
14
+ (props): GraphSeriesOption => {
15
+ const config: GraphSeriesOption = {
16
+ type: "graph",
17
+ };
18
+ return config;
19
+ }
20
+ )
21
+ .setPropertyViewFn((children) => (
22
+ <>
23
+ {showLabelPropertyView(children)}
24
+ {children.type.propertyView({
25
+ label: trans("graphChart.graphType"),
26
+ radioButton: true,
27
+ })}
28
+ </>
29
+ ))
30
+ .build();
31
+})();
0 commit comments