File tree Expand file tree Collapse file tree 5 files changed +18
-0
lines changed
lowcoder-comps/src/comps/gaugeChartComp Expand file tree Collapse file tree 5 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ if (EchartsStyle) {
287
287
titleStyle : styleControl ( EchartDefaultTextStyle , 'titleStyle' ) ,
288
288
labelStyle : styleControl ( EchartDefaultTextStyle , 'labelStyle' ) ,
289
289
legendStyle : styleControl ( EchartDefaultTextStyle , 'legendStyle' ) ,
290
+ axisLabelStyle : styleControl ( EchartDefaultTextStyle , 'axisLabelStyle' ) ,
290
291
}
291
292
}
292
293
const chartMapModeChildren = {
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ export function gaugeChartPropertyView(
67
67
< Section name = { sectionNames . detailStyle } >
68
68
{ children . legendStyle ?. getPropertyView ( ) }
69
69
</ Section >
70
+ < Section name = { sectionNames . axisLabelStyle } >
71
+ { children . axisLabelStyle ?. getPropertyView ( ) }
72
+ </ Section >
70
73
< Section name = { sectionNames . layout } > { hiddenPropertyView ( children ) } </ Section >
71
74
</ >
72
75
) ;
Original file line number Diff line number Diff line change @@ -217,6 +217,18 @@ export function getEchartsConfig(
217
217
"width" : props ?. progressBarWidth
218
218
}
219
219
} ,
220
+ "axisLabel" : {
221
+ "distance" : props ?. progressBarWidth + "10" , // Distance of the labels from the axis
222
+ "fontFamily" : props ?. axixLabelStyle ?. chartFontFamily || theme ?. axixLabelStyle ?. fontFamily ,
223
+ "fontSize" : props ?. axixLabelStyle ?. chartTextSize || theme ?. axixLabelStyle ?. fontSize || 12 ,
224
+ "fontWeight" : props ?. axixLabelStyle ?. chartTextWeight || theme ?. axixLabelStyle ?. fontWeight ,
225
+ "color" : props ?. axixLabelStyle ?. chartTextColor || theme ?. axixLabelStyle ?. fontColor || "#000000" ,
226
+ "fontStyle" : props ?. axixLabelStyle ?. chartFontStyle || theme ?. axixLabelStyle ?. fontStyle ,
227
+ "textShadowColor" : props ?. axixLabelStyle ?. chartShadowColor || theme ?. axixLabelStyle ?. shadowColor ,
228
+ "textShadowBlur" : props ?. axixLabelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. axixLabelStyle ?. boxShadow ?. split ( 'px' ) [ 0 ] ,
229
+ "textShadowOffsetX" : props ?. axixLabelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. axixLabelStyle ?. boxShadow ?. split ( 'px' ) [ 1 ] ,
230
+ "textShadowOffsetY" : props ?. axixLabelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. axixLabelStyle ?. boxShadow ?. split ( 'px' ) [ 2 ]
231
+ } ,
220
232
'detail' : {
221
233
"fontFamily" : props ?. legendStyle ?. chartFontFamily || theme ?. legendStyle ?. fontFamily ,
222
234
"fontSize" : props ?. legendStyle ?. chartTextSize || theme ?. legendStyle ?. fontSize || 16 ,
Original file line number Diff line number Diff line change @@ -191,4 +191,5 @@ export const sectionNames = {
191
191
titleStyle :trans ( "prop.titleStyle" ) ,
192
192
legendStyle :trans ( "prop.legendStyle" ) ,
193
193
detailStyle :trans ( "prop.detailStyle" ) ,
194
+ axisLabelStyle :trans ( "prop.axisLabelStyle" ) ,
194
195
} ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export const en = {
44
44
titleStyle : "Title Style" ,
45
45
legendStyle : "Legend Style" ,
46
46
detailStyle : "Detail Style" ,
47
+ axisLabelStyle : "Axis Label Style"
47
48
} ,
48
49
passwordInput : {
49
50
label : "Password:" ,
You can’t perform that action at this time.
0 commit comments