@@ -16,14 +16,16 @@ import {
1616 uiChildren ,
1717 clickEvent ,
1818 styleControl ,
19- EchartsStyle
19+ EchartDefaultChartStyle ,
20+ EchartDefaultTextStyle
2021} from "lowcoder-sdk" ;
2122import { RecordConstructorToComp , RecordConstructorToView } from "lowcoder-core" ;
2223import { BarChartConfig } from "../chartComp/chartConfigs/barChartConfig" ;
2324import { XAxisConfig , YAxisConfig } from "../chartComp/chartConfigs/cartesianAxisConfig" ;
2425import { LegendConfig } from "../chartComp/chartConfigs/legendConfig" ;
2526import { EchartsLegendConfig } from "../chartComp/chartConfigs/echartsLegendConfig" ;
2627import { EchartsLabelConfig } from "../chartComp/chartConfigs/echartsLabelConfig" ;
28+ import { EchartsTitleConfig } from "comps/chartComp/chartConfigs/echartsTitleConfig" ;
2729import { LineChartConfig } from "../chartComp/chartConfigs/lineChartConfig" ;
2830import { PieChartConfig } from "../chartComp/chartConfigs/pieChartConfig" ;
2931import { ScatterChartConfig } from "../chartComp/chartConfigs/scatterChartConfig" ;
@@ -252,15 +254,25 @@ let chartJsonModeChildren: any = {
252254 echartsTitle : withDefault ( StringControl , trans ( "candleStickChart.defaultTitle" ) ) ,
253255 echartsLegendConfig : EchartsLegendConfig ,
254256 echartsLabelConfig : EchartsLabelConfig ,
257+ echartsTitleConfig :EchartsTitleConfig ,
255258 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' ) ) ,
257265 tooltip : withDefault ( BoolControl , true ) ,
258266 legendVisibility : withDefault ( BoolControl , true ) ,
267+ dataZoomVisibility : withDefault ( BoolControl , true ) ,
259268}
260269if ( EchartDefaultChartStyle && EchartDefaultTextStyle ) {
261270 chartJsonModeChildren = {
262271 ...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' ) ,
264276 }
265277}
266278
0 commit comments