Commit 1bc3797d by zhangxw

echarts图显示修改

1 parent 6574e887
...@@ -137,9 +137,18 @@ const waveChartOption = { ...@@ -137,9 +137,18 @@ const waveChartOption = {
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,
data: ['0:00', '0:20', '0:40', '1:00', '1:20', '1:40', '2:00'], data: [],
axisLabel: { axisLabel: {
color: '#999EA8' color: '#999EA8',
showMinLabel: true,
showMaxLabel: true,
formatter: function (value, index) {
if (index == 0 || index == data.length - 1) {
return value
} else {
return ''
}
}
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
...@@ -308,7 +317,16 @@ const waveChartOption1 = { ...@@ -308,7 +317,16 @@ const waveChartOption1 = {
boundaryGap: false, boundaryGap: false,
data: [], data: [],
axisLabel: { axisLabel: {
color: '#999EA8' color: '#999EA8',
showMinLabel: true,
showMaxLabel: true,
formatter: function (value, index) {
if (index == 0 || index == data.length - 1) {
return value
} else {
return ''
}
}
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
...@@ -406,7 +424,16 @@ const waveChartOption2 = { ...@@ -406,7 +424,16 @@ const waveChartOption2 = {
boundaryGap: false, boundaryGap: false,
data: [], data: [],
axisLabel: { axisLabel: {
color: '#999EA8' color: '#999EA8',
showMinLabel: true,
showMaxLabel: true,
formatter: function (value, index) {
if (index == 0 || index == data.length - 1) {
return value
} else {
return ''
}
}
}, },
axisTick: { axisTick: {
show: false, // 隐藏x轴刻度 show: false, // 隐藏x轴刻度
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!