|
@@ -29,7 +29,7 @@ export default {
|
|
|
this.chart.showLoading()
|
|
|
// 根据key值处理data
|
|
|
this.data = data || [[]]
|
|
|
- console.log(111, Charts[key], key)
|
|
|
+ // console.log(111, Charts[key], key)
|
|
|
const _option = cloneDeep(Charts[key].option)
|
|
|
const series = _option.series
|
|
|
const _data = []
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
if (_option.xAxis?.data) {
|
|
|
_option.xAxis.data = config?.xAxisData ?? this.data[0].map((e, i) => i)
|
|
|
}
|
|
|
- console.log(_option)
|
|
|
+ // console.log(_option)
|
|
|
this.chart.setOption(_option, this.key !== key)
|
|
|
this.key = key
|
|
|
this.chart.hideLoading()
|