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 = {
269
269
min :withDefault ( NumberControl , trans ( 'gaugeChart.defaultMin' ) ) ,
270
270
max :withDefault ( NumberControl , trans ( 'gaugeChart.defaultMax' ) ) ,
271
271
gap :withDefault ( NumberControl , trans ( 'gaugeChart.defaultGap' ) ) ,
272
+ positin_x :withDefault ( NumberControl , trans ( 'gaugeChart.position_x' ) ) ,
273
+ positin_y :withDefault ( NumberControl , trans ( 'gaugeChart.position_y' ) ) ,
272
274
startAngle :withDefault ( NumberControl , trans ( 'gaugeChart.defaultStartAngle' ) ) ,
273
275
endAngle :withDefault ( NumberControl , trans ( 'gaugeChart.defaultEndAngle' ) ) ,
274
276
splitNumber :withDefault ( NumberControl , trans ( 'gaugeChart.defaultSplitNumber' ) ) ,
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ export function gaugeChartPropertyView(
40
40
{ children . radius . propertyView ( { label : trans ( "gaugeChart.radius" ) } ) }
41
41
{ children . min . propertyView ( { label : trans ( "gaugeChart.min" ) } ) }
42
42
{ 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" ) } ) }
43
45
{ children . startAngle . propertyView ( { label : trans ( "gaugeChart.startAngle" ) } ) }
44
46
{ children . endAngle . propertyView ( { label : trans ( "gaugeChart.endAngle" ) } ) }
45
47
{ children . splitNumber . propertyView ( { label : trans ( "gaugeChart.splitNumber" ) } ) }
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ export function getEchartsConfig(
186
186
"min" : props . min ,
187
187
"max" : props . max ,
188
188
"gap" : props . gap ,
189
+ "center" : [ `${ props . position_x } %` , `${ props . position_y } %` ] ,
189
190
"startAngle" : props . startAngle ,
190
191
"endAngle" : props . endAngle ,
191
192
"splitNumber" : props . splitNumber ,
Original file line number Diff line number Diff line change @@ -110,12 +110,16 @@ export const en = {
110
110
defaultSplitNumber : '10' ,
111
111
splitNumber : 'Split Number' ,
112
112
radius : 'Radius' ,
113
- defaultRadius : '60 ' ,
114
- defaultPointerLength : '75 ' ,
113
+ defaultRadius : '80 ' ,
114
+ defaultPointerLength : '50 ' ,
115
115
pointerLength : 'Pointer Length' ,
116
116
pointerWidth : 'Pointer Width' ,
117
- defaultPointerWidth : '25 ' ,
117
+ defaultPointerWidth : '5 ' ,
118
118
label :'Label' ,
119
+ position_x : 'Position-X' ,
120
+ defaultPosition_X : '50' ,
121
+ position_y : 'Position-Y' ,
122
+ defaultPosition_Y : '60' ,
119
123
120
124
} ,
121
125
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
1077
1077
const StyledTextSizeIcon = styled ( TextSizeIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
1078
1078
const StyledTextTransformIcon = styled ( TextTransformationIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
1079
1079
const 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` ;
1080
1081
const StyledTextWeightIcon = styled ( TextWeightIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
1081
1082
const StyledTextStyleIcon = styled ( TextStyleIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
1082
1083
const StyledTextDecorationPropIcon = styled ( TextDecorationIcon ) ` margin: 0 8px 0 -3px; padding: 3px; color: #888` ;
@@ -1477,7 +1478,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(
1477
1478
>
1478
1479
) . propertyView ( {
1479
1480
label : config . label ,
1480
- preInputNode : < StyledFontFamilyIcon title = "chartFontStyle" /> ,
1481
+ preInputNode : < StyledFontStyleIcon title = "chartFontStyle" /> ,
1481
1482
placeholder : props [ name ] ,
1482
1483
} )
1483
1484
: name === 'animationIterationCount'
You can’t perform that action at this time.
0 commit comments