@@ -138,8 +138,8 @@ export function getEchartsConfig(
138
138
console . log ( "props" , props ) ;
139
139
console . log ( "theme" , theme ) ;
140
140
141
- const backgroundColor = props ?. chartStyle ?. background || theme ?. chartStyle ?. backgroundColor ;
142
- const gradientColor = props ?. chartStyle ?. gradientBackground || theme ?. chartStyle ?. gradientColor ;
141
+ const backgroundColor = props ?. chartStyle ?. chartBackgroundColor || theme ?. chartStyle ?. backgroundColor ;
142
+ const gradientColor = props ?. chartStyle ?. chartGradientColor || theme ?. chartStyle ?. gradientColor ;
143
143
const opacity = props ?. chartStyle ?. chartOpacity || theme ?. chartStyle ?. opacity ;
144
144
const direction = props ?. chartStyle ?. direction || theme ?. chartStyle ?. direction ;
145
145
@@ -156,9 +156,9 @@ export function getEchartsConfig(
156
156
"fontFamily" : props ?. titleStyle ?. chartFontFamily || theme ?. titleStyle ?. fontFamily ,
157
157
"fontSize" : props ?. titleStyle ?. chartTextSize || theme ?. titleStyle ?. fontSize ,
158
158
"fontWeight" : props ?. titleStyle ?. chartTextWeight || theme ?. titleStyle ?. fontWeight ,
159
- "color" : props ?. titleStyle ?. text || theme ?. titleStyle ?. fontColor ,
159
+ "color" : props ?. titleStyle ?. chartTextColor || theme ?. titleStyle ?. fontColor ,
160
160
"fontStyle" : props ?. titleStyle ?. chartFontStyle || theme ?. titleStyle ?. fontStyle ,
161
- "textShadowColor" : props ?. titleStyle ?. boxShadowColor || theme ?. titleStyle ?. shadowColor ,
161
+ "textShadowColor" : props ?. titleStyle ?. chartShadowColor || theme ?. titleStyle ?. shadowColor ,
162
162
"textShadowBlur" : props ?. titleStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. titleStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
163
163
"textShadowOffsetX" : props ?. titleStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. titleStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
164
164
"textShadowOffsetY" : props ?. titleStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. titleStyle ?. boxShadow . split ( 'px' ) [ 2 ]
@@ -188,9 +188,9 @@ export function getEchartsConfig(
188
188
"fontFamily" : props ?. legendStyle ?. chartFontFamily || theme ?. legendStyle ?. fontFamily ,
189
189
"fontSize" : props ?. legendStyle ?. chartTextSize || theme ?. legendStyle ?. fontSize ,
190
190
"fontWeight" : props ?. legendStyle ?. chartTextWeight || theme ?. legendStyle ?. fontWeight ,
191
- "color" : props ?. legendStyle ?. text || theme ?. legendStyle ?. fontColor ,
191
+ "color" : props ?. legendStyle ?. chartTextColor || theme ?. legendStyle ?. fontColor ,
192
192
"fontStyle" : props ?. legendStyle ?. chartFontStyle || theme ?. legendStyle ?. fontStyle ,
193
- "textShadowColor" : props ?. legendStyle ?. boxShadowColor || theme ?. legendStyle ?. shadowColor ,
193
+ "textShadowColor" : props ?. legendStyle ?. chartShadowColor || theme ?. legendStyle ?. shadowColor ,
194
194
"textShadowBlur" : props ?. legendStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. legendStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
195
195
"textShadowOffsetX" : props ?. legendStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. legendStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
196
196
"textShadowOffsetY" : props ?. legendStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. legendStyle ?. boxShadow . split ( 'px' ) [ 2 ]
@@ -211,11 +211,11 @@ export function getEchartsConfig(
211
211
"sort" : props . echartsSortingConfig . sort ,
212
212
"itemStyle" : {
213
213
"opacity" : props . opacity ,
214
- "borderColor" : props ?. chartStyle ?. border || theme ?. chartStyle ?. borderColor ,
214
+ "borderColor" : props ?. chartStyle ?. chartBorderColor || theme ?. chartStyle ?. borderColor ,
215
215
"borderWidth" : props ?. chartStyle ?. chartBorderWidth || theme ?. chartStyle ?. borderWidth ,
216
216
"borderType" : props ?. chartStyle ?. chartBorderStyle || theme ?. chartStyle ?. borderType ,
217
217
"borderRadius" : props ?. chartStyle ?. chartBorderRadius || theme ?. chartStyle ?. borderRadius ,
218
- "shadowColor" : props ?. chartStyle ?. boxShadowColor || theme ?. chartStyle ?. shadowColor ,
218
+ "shadowColor" : props ?. chartStyle ?. chartShadowColor || theme ?. chartStyle ?. shadowColor ,
219
219
"shadowBlur" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
220
220
"shadowOffsetX" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
221
221
"shadowOffsetY" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow . split ( 'px' ) [ 2 ]
@@ -226,9 +226,9 @@ export function getEchartsConfig(
226
226
"fontFamily" : props ?. labelStyle ?. chartFontFamily || theme ?. labelStyle ?. fontFamily ,
227
227
"fontSize" : props ?. labelStyle ?. chartTextSize || theme ?. labelStyle ?. fontSize ,
228
228
"fontWeight" : props ?. labelStyle ?. chartTextWeight || theme ?. labelStyle ?. fontWeight ,
229
- "color" : props ?. labelStyle ?. text || theme ?. labelStyle ?. fontColor ,
229
+ "color" : props ?. labelStyle ?. chartTextColor || theme ?. labelStyle ?. fontColor ,
230
230
"fontStyle" : props ?. labelStyle ?. chartFontStyle || theme ?. labelStyle ?. fontStyle ,
231
- "textShadowColor" : props ?. labelStyle ?. boxShadowColor || theme ?. labelStyle ?. shadowColor ,
231
+ "textShadowColor" : props ?. labelStyle ?. chartShadowColor || theme ?. labelStyle ?. shadowColor ,
232
232
"textShadowBlur" : props ?. labelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. labelStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
233
233
"textShadowOffsetX" : props ?. labelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. labelStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
234
234
"textShadowOffsetY" : props ?. labelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. labelStyle ?. boxShadow . split ( 'px' ) [ 2 ]
0 commit comments