@@ -141,12 +141,12 @@ export function getEchartsConfig(
141
141
'top' : props . echartsLegendConfig . top === 'bottom' ?'top' :'bottom' ,
142
142
"left" :props . echartsTitleConfig . top ,
143
143
"textStyle" : {
144
- "fontFamily" : props ?. titleStyle ?. fontFamily || theme ?. style ?. fontFamily || "Arial" ,
145
- "fontSize" : props ?. titleStyle ?. textSize || theme ?. style ?. textSize || 18 ,
146
- "fontWeight" : props ?. titleStyle ?. textWeight || theme ?. style ?. textWeight ,
147
- "color" : props ?. titleStyle ?. text || theme ?. style ?. text || "#333" ,
148
- "fontStyle" : props ?. titleStyle ?. fontStyle || theme ?. style ?. fontStyle ,
149
- "textShadowColor" : props ?. titleStyle ?. boxShadowColor || theme ?. style ?. boxShadowColor ,
144
+ "fontFamily" : props ?. titleStyle ?. fontFamily ,
145
+ "fontSize" : props ?. titleStyle ?. textSize ,
146
+ "fontWeight" : props ?. titleStyle ?. textWeight ,
147
+ "color" : props ?. titleStyle ?. text ,
148
+ "fontStyle" : props ?. titleStyle ?. fontStyle ,
149
+ "textShadowColor" : props ?. titleStyle ?. boxShadowColor ,
150
150
"textShadowBlur" : props ?. titleStyle ?. boxShadow ?. split ( ' ' ) [ 0 ] ,
151
151
"textShadowOffsetX" : props ?. titleStyle ?. boxShadow ?. split ( ' ' ) [ 1 ] ,
152
152
"textShadowOffsetY" : props ?. titleStyle ?. boxShadow ?. split ( ' ' ) [ 2 ]
@@ -159,11 +159,11 @@ export function getEchartsConfig(
159
159
"x2" : props ?. chartStyle ?. direction ?. split ( ' ' ) [ 2 ] ,
160
160
"y2" : props ?. chartStyle ?. direction ?. split ( ' ' ) [ 3 ] ,
161
161
"colorStops" : [
162
- { "offset" : 0 , "color" : props ?. chartStyle ?. opacity ? props ?. chartStyle ?. background + opacityToHex ( props ?. chartStyle ?. opacity ) : props ?. chartStyle ?. background || "#FFFFFF" } ,
163
- { "offset" : 1 , "color" : props ?. chartStyle ?. opacity ? props ?. chartStyle ?. gradientBackground + opacityToHex ( props ?. chartStyle ?. opacity ) : props ?. chartStyle ?. gradientBackground || "#FFFFFF" }
162
+ { "offset" : 0 , "color" : props ?. chartStyle ?. opacity ? props ?. chartStyle ?. background + opacityToHex ( props ?. chartStyle ?. opacity ) : props ?. chartStyle ?. background } ,
163
+ { "offset" : 1 , "color" : props ?. chartStyle ?. opacity ? props ?. chartStyle ?. gradientBackground + opacityToHex ( props ?. chartStyle ?. opacity ) : props ?. chartStyle ?. gradientBackground }
164
164
]
165
165
}
166
- : props ?. chartStyle ?. opacity ? ( props ?. chartStyle ?. background || theme ?. style ?. background ) + opacityToHex ( props ?. chartStyle ?. opacity ) : props ?. chartStyle ?. background || theme ?. style ?. background ,
166
+ : props ?. chartStyle ?. opacity ? ( props ?. chartStyle ?. background ) + opacityToHex ( props ?. chartStyle ?. opacity ) : props ?. chartStyle ?. background ,
167
167
"color" : props . echartsOption . data ?. map ( data => data . color ) ,
168
168
"tooltip" : props . tooltip && {
169
169
"trigger" : "item" ,
@@ -173,12 +173,12 @@ export function getEchartsConfig(
173
173
"data" : props . echartsOption . data ?. map ( data => data . name ) ,
174
174
"top" : props . echartsLegendConfig . top ,
175
175
"textStyle" : {
176
- "fontFamily" : props ?. legendStyle ?. fontFamily || theme ?. style ?. fontFamily || "Arial" ,
177
- "fontSize" : props ?. legendStyle ?. textSize || theme ?. style ?. textSize ,
178
- "fontWeight" : props ?. legendStyle ?. textWeight || theme ?. style ?. textWeight ,
179
- "color" : props ?. legendStyle ?. text || theme ?. style ?. text || "#000000" ,
180
- "fontStyle" : props ?. legendStyle ?. fontStyle || theme ?. style ?. fontStyle ,
181
- "textShadowColor" : props ?. legendStyle ?. boxShadowColor || theme ?. style ?. boxShadowColor ,
176
+ "fontFamily" : props ?. legendStyle ?. fontFamily ,
177
+ "fontSize" : props ?. legendStyle ?. textSize ,
178
+ "fontWeight" : props ?. legendStyle ?. textWeight ,
179
+ "color" : props ?. legendStyle ?. text ,
180
+ "fontStyle" : props ?. legendStyle ?. fontStyle ,
181
+ "textShadowColor" : props ?. legendStyle ?. boxShadowColor ,
182
182
"textShadowBlur" : props ?. legendStyle ?. boxShadow ?. split ( ' ' ) [ 0 ] ,
183
183
"textShadowOffsetX" : props ?. legendStyle ?. boxShadow ?. split ( ' ' ) [ 1 ] ,
184
184
"textShadowOffsetY" : props ?. legendStyle ?. boxShadow ?. split ( ' ' ) [ 2 ]
@@ -199,24 +199,24 @@ export function getEchartsConfig(
199
199
"sort" : props . echartsSortingConfig . sort ,
200
200
"itemStyle" : {
201
201
"opacity" : props . opacity ,
202
- "borderColor" : props ?. chartStyle ?. border || theme ?. style ?. border ,
202
+ "borderColor" : props ?. chartStyle ?. border ,
203
203
"borderWidth" : props ?. chartStyle ?. borderWidth ,
204
204
"borderType" : props ?. chartStyle ?. borderStyle ,
205
205
"borderRadius" : props ?. chartStyle ?. radius ,
206
- "shadowColor" : props ?. chartStyle ?. boxShadowColor || theme ?. style ?. boxShadowColor ,
206
+ "shadowColor" : props ?. chartStyle ?. boxShadowColor ,
207
207
"shadowBlur" : props ?. chartStyle ?. boxShadow ?. split ( ' ' ) [ 0 ] ,
208
208
"shadowOffsetX" : props ?. chartStyle ?. boxShadow ?. split ( ' ' ) [ 0 ] ,
209
209
"shadowOffsetY" : props ?. chartStyle ?. boxShadow ?. split ( ' ' ) [ 0 ]
210
210
} ,
211
211
"label" : {
212
212
"show" : props . label ,
213
213
"position" : props . echartsLabelConfig . top ,
214
- "fontFamily" : props ?. style ?. fontFamily || theme ?. style ?. fontFamily || "Arial" ,
215
- "fontSize" : props ?. style ?. textSize || theme ?. style ?. textSize ,
216
- "fontWeight" : props ?. style ?. textWeight || theme ?. style ?. textWeight ,
217
- "color" : props ?. style ?. text || theme ?. style ?. text ,
218
- "fontStyle" : props ?. style ?. fontStyle || theme ?. style ?. fontStyle ,
219
- "textShadowColor" : props ?. style ?. boxShadowColor || theme ?. style ?. boxShadowColor ,
214
+ "fontFamily" : props ?. style ?. fontFamily ,
215
+ "fontSize" : props ?. style ?. textSize ,
216
+ "fontWeight" : props ?. style ?. textWeight ,
217
+ "color" : props ?. style ?. text ,
218
+ "fontStyle" : props ?. style ?. fontStyle ,
219
+ "textShadowColor" : props ?. style ?. boxShadowColor ,
220
220
"textShadowBlur" : props ?. style ?. boxShadow ?. split ( ' ' ) [ 0 ] ,
221
221
"textShadowOffsetX" : props ?. style ?. boxShadow ?. split ( ' ' ) [ 1 ] ,
222
222
"textShadowOffsetY" : props ?. style ?. boxShadow ?. split ( ' ' ) [ 2 ]
0 commit comments