|
@@ -71,6 +71,9 @@ export default {
|
|
},
|
|
},
|
|
changeBarOrPie(type) { // 饼图柱状图切换
|
|
changeBarOrPie(type) { // 饼图柱状图切换
|
|
if (!this.childChartData) return
|
|
if (!this.childChartData) return
|
|
|
|
+ if (this.childChartData.xaxis && this.childChartData.xaxis.length === 0) {
|
|
|
|
+ this.visible = false
|
|
|
|
+ }
|
|
if (type === 'bar') {
|
|
if (type === 'bar') {
|
|
this.childOption = {
|
|
this.childOption = {
|
|
color: ['#3AA1FF'],
|
|
color: ['#3AA1FF'],
|