@@ -138,8 +138,8 @@ export function getEchartsConfig(
138138 console . log ( "props" , props ) ;
139139 console . log ( "theme" , theme ) ;
140140
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 ;
143143 const opacity = props ?. chartStyle ?. chartOpacity || theme ?. chartStyle ?. opacity ;
144144 const direction = props ?. chartStyle ?. direction || theme ?. chartStyle ?. direction ;
145145
@@ -156,9 +156,9 @@ export function getEchartsConfig(
156156 "fontFamily" : props ?. titleStyle ?. chartFontFamily || theme ?. titleStyle ?. fontFamily ,
157157 "fontSize" : props ?. titleStyle ?. chartTextSize || theme ?. titleStyle ?. fontSize ,
158158 "fontWeight" : props ?. titleStyle ?. chartTextWeight || theme ?. titleStyle ?. fontWeight ,
159- "color" : props ?. titleStyle ?. text || theme ?. titleStyle ?. fontColor ,
159+ "color" : props ?. titleStyle ?. chartTextColor || theme ?. titleStyle ?. fontColor ,
160160 "fontStyle" : props ?. titleStyle ?. chartFontStyle || theme ?. titleStyle ?. fontStyle ,
161- "textShadowColor" : props ?. titleStyle ?. boxShadowColor || theme ?. titleStyle ?. shadowColor ,
161+ "textShadowColor" : props ?. titleStyle ?. chartShadowColor || theme ?. titleStyle ?. shadowColor ,
162162 "textShadowBlur" : props ?. titleStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. titleStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
163163 "textShadowOffsetX" : props ?. titleStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. titleStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
164164 "textShadowOffsetY" : props ?. titleStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. titleStyle ?. boxShadow . split ( 'px' ) [ 2 ]
@@ -188,9 +188,9 @@ export function getEchartsConfig(
188188 "fontFamily" : props ?. legendStyle ?. chartFontFamily || theme ?. legendStyle ?. fontFamily ,
189189 "fontSize" : props ?. legendStyle ?. chartTextSize || theme ?. legendStyle ?. fontSize ,
190190 "fontWeight" : props ?. legendStyle ?. chartTextWeight || theme ?. legendStyle ?. fontWeight ,
191- "color" : props ?. legendStyle ?. text || theme ?. legendStyle ?. fontColor ,
191+ "color" : props ?. legendStyle ?. chartTextColor || theme ?. legendStyle ?. fontColor ,
192192 "fontStyle" : props ?. legendStyle ?. chartFontStyle || theme ?. legendStyle ?. fontStyle ,
193- "textShadowColor" : props ?. legendStyle ?. boxShadowColor || theme ?. legendStyle ?. shadowColor ,
193+ "textShadowColor" : props ?. legendStyle ?. chartShadowColor || theme ?. legendStyle ?. shadowColor ,
194194 "textShadowBlur" : props ?. legendStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. legendStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
195195 "textShadowOffsetX" : props ?. legendStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. legendStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
196196 "textShadowOffsetY" : props ?. legendStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. legendStyle ?. boxShadow . split ( 'px' ) [ 2 ]
@@ -211,11 +211,11 @@ export function getEchartsConfig(
211211 "sort" : props . echartsSortingConfig . sort ,
212212 "itemStyle" : {
213213 "opacity" : props . opacity ,
214- "borderColor" : props ?. chartStyle ?. border || theme ?. chartStyle ?. borderColor ,
214+ "borderColor" : props ?. chartStyle ?. chartBorderColor || theme ?. chartStyle ?. borderColor ,
215215 "borderWidth" : props ?. chartStyle ?. chartBorderWidth || theme ?. chartStyle ?. borderWidth ,
216216 "borderType" : props ?. chartStyle ?. chartBorderStyle || theme ?. chartStyle ?. borderType ,
217217 "borderRadius" : props ?. chartStyle ?. chartBorderRadius || theme ?. chartStyle ?. borderRadius ,
218- "shadowColor" : props ?. chartStyle ?. boxShadowColor || theme ?. chartStyle ?. shadowColor ,
218+ "shadowColor" : props ?. chartStyle ?. chartShadowColor || theme ?. chartStyle ?. shadowColor ,
219219 "shadowBlur" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
220220 "shadowOffsetX" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
221221 "shadowOffsetY" : props ?. chartStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. chartStyle ?. boxShadow . split ( 'px' ) [ 2 ]
@@ -226,9 +226,9 @@ export function getEchartsConfig(
226226 "fontFamily" : props ?. labelStyle ?. chartFontFamily || theme ?. labelStyle ?. fontFamily ,
227227 "fontSize" : props ?. labelStyle ?. chartTextSize || theme ?. labelStyle ?. fontSize ,
228228 "fontWeight" : props ?. labelStyle ?. chartTextWeight || theme ?. labelStyle ?. fontWeight ,
229- "color" : props ?. labelStyle ?. text || theme ?. labelStyle ?. fontColor ,
229+ "color" : props ?. labelStyle ?. chartTextColor || theme ?. labelStyle ?. fontColor ,
230230 "fontStyle" : props ?. labelStyle ?. chartFontStyle || theme ?. labelStyle ?. fontStyle ,
231- "textShadowColor" : props ?. labelStyle ?. boxShadowColor || theme ?. labelStyle ?. shadowColor ,
231+ "textShadowColor" : props ?. labelStyle ?. chartShadowColor || theme ?. labelStyle ?. shadowColor ,
232232 "textShadowBlur" : props ?. labelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 0 ] || theme ?. labelStyle ?. boxShadow . split ( 'px' ) [ 0 ] ,
233233 "textShadowOffsetX" : props ?. labelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 1 ] || theme ?. labelStyle ?. boxShadow . split ( 'px' ) [ 1 ] ,
234234 "textShadowOffsetY" : props ?. labelStyle ?. chartBoxShadow ?. split ( 'px' ) [ 2 ] || theme ?. labelStyle ?. boxShadow . split ( 'px' ) [ 2 ]
0 commit comments