File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
client/packages/lowcoder-comps/src/comps/chartComp/chartConfigs Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ import {
2
+ BoolControl ,
3
+ MultiCompBuilder ,
4
+ showLabelPropertyView ,
5
+ } from "lowcoder-sdk" ;
6
+ import { HeatmapSeriesOption } from "echarts" ;
7
+ import { trans } from "i18n/comps" ;
8
+
9
+ export const HeatmapChartConfig = ( function ( ) {
10
+ return new MultiCompBuilder (
11
+ {
12
+ showLabel : BoolControl ,
13
+ } ,
14
+ ( props ) : HeatmapSeriesOption => {
15
+ const config : HeatmapSeriesOption = {
16
+ type : "heatmap" ,
17
+ } ;
18
+ return config ;
19
+ }
20
+ )
21
+ . setPropertyViewFn ( ( children ) => (
22
+ < >
23
+ { showLabelPropertyView ( children ) }
24
+ { children . type . propertyView ( {
25
+ label : trans ( "heatmapChart.heatmapType" ) ,
26
+ radioButton : true ,
27
+ } ) }
28
+ </ >
29
+ ) )
30
+ . build ( ) ;
31
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments