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) {
287287 titleStyle : styleControl ( EchartDefaultTextStyle , 'titleStyle' ) ,
288288 labelStyle : styleControl ( EchartDefaultTextStyle , 'labelStyle' ) ,
289289 legendStyle : styleControl ( EchartDefaultTextStyle , 'legendStyle' ) ,
290+ axisLabelStyle : styleControl ( EchartDefaultTextStyle , 'axisLabelStyle' ) ,
290291 }
291292}
292293const chartMapModeChildren = {
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ export function gaugeChartPropertyView(
6767 < Section name = { sectionNames . detailStyle } >
6868 { children . legendStyle ?. getPropertyView ( ) }
6969 </ Section >
70+ < Section name = { sectionNames . axisLabelStyle } >
71+ { children . axisLabelStyle ?. getPropertyView ( ) }
72+ </ Section >
7073 < Section name = { sectionNames . layout } > { hiddenPropertyView ( children ) } </ Section >
7174 </ >
7275 ) ;
Original file line number Diff line number Diff line change @@ -217,6 +217,18 @@ export function getEchartsConfig(
217217 "width" : props ?. progressBarWidth
218218 }
219219 } ,
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+ } ,
220232 'detail' : {
221233 "fontFamily" : props ?. legendStyle ?. chartFontFamily || theme ?. legendStyle ?. fontFamily ,
222234 "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 = {
191191 titleStyle :trans ( "prop.titleStyle" ) ,
192192 legendStyle :trans ( "prop.legendStyle" ) ,
193193 detailStyle :trans ( "prop.detailStyle" ) ,
194+ axisLabelStyle :trans ( "prop.axisLabelStyle" ) ,
194195} ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ export const en = {
4444 titleStyle : "Title Style" ,
4545 legendStyle : "Legend Style" ,
4646 detailStyle : "Detail Style" ,
47+ axisLabelStyle : "Axis Label Style"
4748 } ,
4849 passwordInput : {
4950 label : "Password:" ,
You can’t perform that action at this time.
0 commit comments