@@ -136,8 +136,6 @@ export function getEchartsConfig(
136
136
theme ?: any ,
137
137
) : EChartsOptionWithMap {
138
138
if ( props . mode === "json" ) {
139
-
140
- console . log ( props . echartsOption )
141
139
let opt = props . echartsOption && {
142
140
title : {
143
141
text : props ?. echartsTitle ,
@@ -148,62 +146,62 @@ export function getEchartsConfig(
148
146
}
149
147
} ,
150
148
backgroundColor : parseBackground ( props ?. chartStyle ?. background || theme ?. chartStyle ?. backgroundColor || "#FFFFFF" ) ,
151
- " tooltip" : props . tooltip && {
152
- " trigger" : "axis" ,
153
- " axisPointer" : {
154
- " type" : "line" ,
155
- " lineStyle" : {
156
- " color" : "rgba(0,0,0,0.2)" ,
157
- " width" : 2 ,
158
- " type" : "solid"
149
+ tooltip : props . tooltip && {
150
+ trigger : "axis" ,
151
+ axisPointer : {
152
+ type : "line" ,
153
+ lineStyle : {
154
+ color : "rgba(0,0,0,0.2)" ,
155
+ width : 2 ,
156
+ type : "solid"
159
157
}
160
158
}
161
159
} ,
162
160
legend : props . legendVisibility && {
163
- " top" : props . echartsLegendConfig . top ,
164
- " left" : props . echartsLegendAlignConfig . left ,
165
- " orient" : props . echartsLegendOrientConfig . orient ,
161
+ top : props . echartsLegendConfig . top ,
162
+ left : props . echartsLegendAlignConfig . left ,
163
+ orient : props . echartsLegendOrientConfig . orient ,
166
164
data : props ?. echartsOption ?. data && Array . from ( new Set ( ( props . echartsOption . data ) . map ( item => item [ 2 ] ) ) ) ,
167
165
textStyle : {
168
166
...styleWrapper ( props ?. legendStyle , theme ?. legendStyle , 13 )
169
167
}
170
168
} ,
171
- " singleAxis" : {
169
+ singleAxis : {
172
170
left : `${ props ?. left } %` ,
173
171
right : `${ props ?. right } %` ,
174
172
bottom : `${ props ?. bottom } %` ,
175
173
top : `${ props ?. top } %` ,
176
- " type" : "time" ,
177
- " axisTick" : { } ,
178
- " axisLabel" : {
174
+ type : "time" ,
175
+ axisTick : { } ,
176
+ axisLabel : {
179
177
...styleWrapper ( props ?. axisStyle , theme ?. axisStyle , 13 )
180
178
} ,
181
- " splitLine" : { } ,
182
- " axisPointer" : {
183
- " animation" : true ,
184
- " label" : {
185
- " show" : true ,
186
- " color" : "#fff"
179
+ splitLine : { } ,
180
+ axisPointer : {
181
+ animation : true ,
182
+ label : {
183
+ show : true ,
184
+ color : "#fff"
187
185
}
188
186
} ,
189
- " splitNumber" : props ?. splitNumber
187
+ splitNumber : props ?. splitNumber
190
188
} ,
191
- " series" : [
189
+ series : [
192
190
{
193
- " type" : props . echartsConfig . type ,
194
- " data" : props . echartsOption . data ,
195
- " label" : {
196
- " show" : true ,
197
- " position" : "top" ,
198
- " fontSize" : 12
191
+ type : props . echartsConfig . type ,
192
+ data : props . echartsOption . data ,
193
+ label : {
194
+ show : true ,
195
+ position : "top" ,
196
+ fontSize : 12
199
197
} ,
200
198
itemStyle : {
201
199
...chartStyleWrapper ( props ?. chartStyle , theme ?. chartStyle ) ,
202
200
} ,
203
- " emphasis" : {
204
- " itemStyle" : {
205
- " shadowBlur" : 20 ,
206
- " shadowColor" : "rgba(0, 0, 0, 0.8)"
201
+ emphasis : {
202
+ itemStyle : {
203
+ shadowBlur : 20 ,
204
+ shadowColor : "rgba(0, 0, 0, 0.8)"
207
205
}
208
206
} ,
209
207
color : props . echartsOption ?. color && props . echartsOption . color
0 commit comments