@@ -136,8 +136,6 @@ export function getEchartsConfig(
136136 theme ?: any ,
137137) : EChartsOptionWithMap {
138138 if ( props . mode === "json" ) {
139-
140- console . log ( props . echartsOption )
141139 let opt = props . echartsOption && {
142140 title : {
143141 text : props ?. echartsTitle ,
@@ -148,62 +146,62 @@ export function getEchartsConfig(
148146 }
149147 } ,
150148 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"
159157 }
160158 }
161159 } ,
162160 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 ,
166164 data : props ?. echartsOption ?. data && Array . from ( new Set ( ( props . echartsOption . data ) . map ( item => item [ 2 ] ) ) ) ,
167165 textStyle : {
168166 ...styleWrapper ( props ?. legendStyle , theme ?. legendStyle , 13 )
169167 }
170168 } ,
171- " singleAxis" : {
169+ singleAxis : {
172170 left : `${ props ?. left } %` ,
173171 right : `${ props ?. right } %` ,
174172 bottom : `${ props ?. bottom } %` ,
175173 top : `${ props ?. top } %` ,
176- " type" : "time" ,
177- " axisTick" : { } ,
178- " axisLabel" : {
174+ type : "time" ,
175+ axisTick : { } ,
176+ axisLabel : {
179177 ...styleWrapper ( props ?. axisStyle , theme ?. axisStyle , 13 )
180178 } ,
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"
187185 }
188186 } ,
189- " splitNumber" : props ?. splitNumber
187+ splitNumber : props ?. splitNumber
190188 } ,
191- " series" : [
189+ series : [
192190 {
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
199197 } ,
200198 itemStyle : {
201199 ...chartStyleWrapper ( props ?. chartStyle , theme ?. chartStyle ) ,
202200 } ,
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)"
207205 }
208206 } ,
209207 color : props . echartsOption ?. color && props . echartsOption . color
0 commit comments