@@ -16,14 +16,16 @@ import {
16
16
uiChildren ,
17
17
clickEvent ,
18
18
styleControl ,
19
- EchartsStyle
19
+ EchartDefaultChartStyle ,
20
+ EchartDefaultTextStyle
20
21
} from "lowcoder-sdk" ;
21
22
import { RecordConstructorToComp , RecordConstructorToView } from "lowcoder-core" ;
22
23
import { BarChartConfig } from "../chartComp/chartConfigs/barChartConfig" ;
23
24
import { XAxisConfig , YAxisConfig } from "../chartComp/chartConfigs/cartesianAxisConfig" ;
24
25
import { LegendConfig } from "../chartComp/chartConfigs/legendConfig" ;
25
26
import { EchartsLegendConfig } from "../chartComp/chartConfigs/echartsLegendConfig" ;
26
27
import { EchartsLabelConfig } from "../chartComp/chartConfigs/echartsLabelConfig" ;
28
+ import { EchartsTitleConfig } from "comps/chartComp/chartConfigs/echartsTitleConfig" ;
27
29
import { LineChartConfig } from "../chartComp/chartConfigs/lineChartConfig" ;
28
30
import { PieChartConfig } from "../chartComp/chartConfigs/pieChartConfig" ;
29
31
import { ScatterChartConfig } from "../chartComp/chartConfigs/scatterChartConfig" ;
@@ -252,15 +254,25 @@ let chartJsonModeChildren: any = {
252
254
echartsTitle : withDefault ( StringControl , trans ( "candleStickChart.defaultTitle" ) ) ,
253
255
echartsLegendConfig : EchartsLegendConfig ,
254
256
echartsLabelConfig : EchartsLabelConfig ,
257
+ echartsTitleConfig :EchartsTitleConfig ,
255
258
echartsConfig : EchartsOptionComp ,
256
- // style: styleControl(EchartsStyle, 'style'),
259
+ left :withDefault ( NumberControl , trans ( 'candleStickChart.defaultLeft' ) ) ,
260
+ right :withDefault ( NumberControl , trans ( 'candleStickChart.defaultRight' ) ) ,
261
+ top :withDefault ( NumberControl , trans ( 'candleStickChart.defaultTop' ) ) ,
262
+ bottom :withDefault ( NumberControl , trans ( 'candleStickChart.defaultBottom' ) ) ,
263
+ dataZoomBottom :withDefault ( NumberControl , trans ( 'candleStickChart.defaultDataZoomBottom' ) ) ,
264
+ dataZoomHeight :withDefault ( NumberControl , trans ( 'candleStickChart.defaultDataZoomHeight' ) ) ,
257
265
tooltip : withDefault ( BoolControl , true ) ,
258
266
legendVisibility : withDefault ( BoolControl , true ) ,
267
+ dataZoomVisibility : withDefault ( BoolControl , true ) ,
259
268
}
260
269
if ( EchartDefaultChartStyle && EchartDefaultTextStyle ) {
261
270
chartJsonModeChildren = {
262
271
...chartJsonModeChildren ,
263
- style : styleControl ( EchartsStyle , 'style' ) ,
272
+ chartStyle : styleControl ( EchartDefaultChartStyle , 'chartStyle' ) ,
273
+ titleStyle : styleControl ( EchartDefaultTextStyle , 'titleStyle' ) ,
274
+ labelStyle : styleControl ( EchartDefaultTextStyle , 'labelStyle' ) ,
275
+ legendStyle : styleControl ( EchartDefaultTextStyle , 'legendStyle' ) ,
264
276
}
265
277
}
266
278
0 commit comments