File tree Expand file tree Collapse file tree 5 files changed +14
-4
lines changed
lowcoder/src/comps/controls Expand file tree Collapse file tree 5 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,8 @@ let chartJsonModeChildren: any = {
269269 min :withDefault ( NumberControl , trans ( 'gaugeChart.defaultMin' ) ) ,
270270 max :withDefault ( NumberControl , trans ( 'gaugeChart.defaultMax' ) ) ,
271271 gap :withDefault ( NumberControl , trans ( 'gaugeChart.defaultGap' ) ) ,
272+ positin_x :withDefault ( NumberControl , trans ( 'gaugeChart.position_x' ) ) ,
273+ positin_y :withDefault ( NumberControl , trans ( 'gaugeChart.position_y' ) ) ,
272274 startAngle :withDefault ( NumberControl , trans ( 'gaugeChart.defaultStartAngle' ) ) ,
273275 endAngle :withDefault ( NumberControl , trans ( 'gaugeChart.defaultEndAngle' ) ) ,
274276 splitNumber :withDefault ( NumberControl , trans ( 'gaugeChart.defaultSplitNumber' ) ) ,
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export function gaugeChartPropertyView(
4040 { children . radius . propertyView ( { label : trans ( "gaugeChart.radius" ) } ) }
4141 { children . min . propertyView ( { label : trans ( "gaugeChart.min" ) } ) }
4242 { children . max . propertyView ( { label : trans ( "gaugeChart.max" ) } ) }
43+ { children . position_x . propertyView ( { label : trans ( "gaugeChart.position_x" ) } ) }
44+ { children . position_y . propertyView ( { label : trans ( "gaugeChart.position_y" ) } ) }
4345 { children . startAngle . propertyView ( { label : trans ( "gaugeChart.startAngle" ) } ) }
4446 { children . endAngle . propertyView ( { label : trans ( "gaugeChart.endAngle" ) } ) }
4547 { children . splitNumber . propertyView ( { label : trans ( "gaugeChart.splitNumber" ) } ) }
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ export function getEchartsConfig(
186186 "min" : props . min ,
187187 "max" : props . max ,
188188 "gap" : props . gap ,
189+ "center" : [ `${ props . position_x } %` , `${ props . position_y } %` ] ,
189190 "startAngle" : props . startAngle ,
190191 "endAngle" : props . endAngle ,
191192 "splitNumber" : props . splitNumber ,
Original file line number Diff line number Diff line change @@ -110,12 +110,16 @@ export const en = {
110110 defaultSplitNumber : '10' ,
111111 splitNumber : 'Split Number' ,
112112 radius : 'Radius' ,
113- defaultRadius : '60 ' ,
114- defaultPointerLength : '75 ' ,
113+ defaultRadius : '80 ' ,
114+ defaultPointerLength : '50 ' ,
115115 pointerLength : 'Pointer Length' ,
116116 pointerWidth : 'Pointer Width' ,
117- defaultPointerWidth : '25 ' ,
117+ defaultPointerWidth : '5 ' ,
118118 label :'Label' ,
119+ position_x : 'Position-X' ,
120+ defaultPosition_X : '50' ,
121+ position_y : 'Position-Y' ,
122+ defaultPosition_Y : '60' ,
119123
120124 } ,
121125 echarts : {
Original file line number Diff line number Diff line change @@ -1077,6 +1077,7 @@ const RotationPropIcon = styled(RotationIcon)` margin: 0 8px 0 -3px; padding: 3p
10771077const StyledTextSizeIcon = styled ( TextSizeIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
10781078const StyledTextTransformIcon = styled ( TextTransformationIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
10791079const StyledFontFamilyIcon = styled ( FontFamilyIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
1080+ const StyledFontStyleIcon = styled ( TextStyleIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
10801081const StyledTextWeightIcon = styled ( TextWeightIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
10811082const StyledTextStyleIcon = styled ( TextStyleIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
10821083const StyledTextDecorationPropIcon = styled ( TextDecorationIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
@@ -1477,7 +1478,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
14771478 >
14781479 ) . propertyView ( {
14791480 label : config . label ,
1480- preInputNode : < StyledFontFamilyIcon title = "chartFontStyle" /> ,
1481+ preInputNode : < StyledFontStyleIcon title = "chartFontStyle" /> ,
14811482 placeholder : props [ name ] ,
14821483 } )
14831484 : name === 'animationIterationCount'
You can’t perform that action at this time.
0 commit comments