Commit 3db14e61 authored by zhanglw's avatar zhanglw

x

parent b5ed2db9
...@@ -390,12 +390,6 @@ export default { ...@@ -390,12 +390,6 @@ export default {
initChart1() { initChart1() {
this.chart1 = echarts.init(this.$refs.chart1, 'macarons') this.chart1 = echarts.init(this.$refs.chart1, 'macarons')
const count = 24 const count = 24
const axisLine = {
show: false,
lineStyle: {
color: '#666'
}
}
const dataX = [] const dataX = []
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
dataX.push(i < 10 ? '0' + i + '' : i + '') dataX.push(i < 10 ? '0' + i + '' : i + '')
...@@ -417,7 +411,12 @@ export default { ...@@ -417,7 +411,12 @@ export default {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -429,7 +428,12 @@ export default { ...@@ -429,7 +428,12 @@ export default {
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -506,12 +510,6 @@ export default { ...@@ -506,12 +510,6 @@ export default {
initChart2() { initChart2() {
this.chart2 = echarts.init(this.$refs.chart2, 'macarons') this.chart2 = echarts.init(this.$refs.chart2, 'macarons')
const count = 24 const count = 24
const axisLine = {
show: false,
lineStyle: {
color: '#666'
}
}
const dataX = [] const dataX = []
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
dataX.push(i < 10 ? '0' + i + '' : i + '') dataX.push(i < 10 ? '0' + i + '' : i + '')
...@@ -538,7 +536,12 @@ export default { ...@@ -538,7 +536,12 @@ export default {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -550,7 +553,12 @@ export default { ...@@ -550,7 +553,12 @@ export default {
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -883,12 +891,6 @@ export default { ...@@ -883,12 +891,6 @@ export default {
initChart4() { initChart4() {
this.chart4 = echarts.init(this.$refs.chart4, 'macarons') this.chart4 = echarts.init(this.$refs.chart4, 'macarons')
const count = 24 const count = 24
const axisLine = {
show: false,
lineStyle: {
color: '#666'
}
}
const dataX = [] const dataX = []
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
dataX.push(i < 10 ? '0' + i + '' : i + '') dataX.push(i < 10 ? '0' + i + '' : i + '')
...@@ -915,7 +917,12 @@ export default { ...@@ -915,7 +917,12 @@ export default {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -927,7 +934,12 @@ export default { ...@@ -927,7 +934,12 @@ export default {
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -1060,12 +1072,6 @@ export default { ...@@ -1060,12 +1072,6 @@ export default {
initChart5() { initChart5() {
this.chart5 = echarts.init(this.$refs.chart5, 'macarons') this.chart5 = echarts.init(this.$refs.chart5, 'macarons')
const count = 24 const count = 24
const axisLine = {
show: false,
lineStyle: {
color: '#666'
}
}
const dataX = [] const dataX = []
for (let i = 0; i < count; i++) { for (let i = 0; i < count; i++) {
dataX.push(i < 10 ? '0' + i + '' : i + '') dataX.push(i < 10 ? '0' + i + '' : i + '')
...@@ -1092,7 +1098,12 @@ export default { ...@@ -1092,7 +1098,12 @@ export default {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
...@@ -1104,7 +1115,12 @@ export default { ...@@ -1104,7 +1115,12 @@ export default {
}, },
yAxis: { yAxis: {
type: 'value', type: 'value',
axisLine, axisLine: {
show: false,
lineStyle: {
color: '#666'
}
},
axisTick: { axisTick: {
show: false show: false
}, },
......
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