Commit 50b7b266 authored by 黄奎's avatar 黄奎

no message

parent c5aafa1f
......@@ -19,7 +19,6 @@
},
xAxisData: [],
unit: '人',
};
},
props: {
......@@ -39,7 +38,7 @@
}
},
mounted() {
this.unit = this.chartData.unit;
//this.unit = this.chartData.unit;
if (this.chartData) {
this.barData.data = this.chartData.customerYData;
this.lineData.data = this.chartData.activationYData;
......@@ -50,6 +49,10 @@
methods: {
initChart() {
const chartDom = document.getElementById('chart');
var xNumber = 0;
if (this.xAxisData && this.xAxisData.length > 0) {
xNumber = this.calculateInterval(this.xAxisData.length);
}
this.chart = echarts.init(chartDom);
const option = {
tooltip: {
......@@ -94,7 +97,7 @@
},
axisLabel: {
color: '#121212',
interval: this.calculateInterval(this.xAxisData.length)
interval: xNumber
},
axisTick: {
show: false,
......@@ -150,7 +153,6 @@
},
],
};
this.chart.setOption(option);
},
setOpacity(seriesName) {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment