This commit is contained in:
lb 2022-11-22 16:58:49 +08:00
parent 890a1be63c
commit 7552e09aeb
2 changed files with 28 additions and 16 deletions

View File

@ -51,6 +51,15 @@ export default {
bottom: 0, bottom: 0,
containLabel: true containLabel: true
}, },
// tooltip: {
// show: true,
// trigger: 'axis',
// axisPointer: {
// type: 'cross',
// axis: 'y'
// }
// formatter: '{b}<br/>{a0}: {c}%<br />{a1}: {c1}%'
// },
xAxis: { xAxis: {
type: 'category', type: 'category',
boundaryGap: false, boundaryGap: false,

View File

@ -25,23 +25,26 @@ export default {
bottom: 0, bottom: 0,
containLabel: true containLabel: true
}, },
xAxis: [ tooltip: {
{ show: true,
type: 'category', type: 'shadow',
data: ['A', 'B', 'C', 'D', 'E'], trigger: 'item'
axisTick: { },
alignWithLabel: true xAxis: {
}, type: 'category',
axisLine: { data: ['A', 'B', 'C', 'D', 'E'],
lineStyle: { axisTick: {
color: '#5982B233' alignWithLabel: true
} },
}, axisLine: {
axisLabel: { lineStyle: {
color: '#fff' color: '#5982B233'
} }
},
axisLabel: {
color: '#fff'
} }
], },
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',
@ -58,7 +61,7 @@ export default {
axisLabel: { axisLabel: {
color: '#ffffff9d' color: '#ffffff9d'
}, },
axisTick: { show : false } axisTick: { show: false }
} }
], ],
series: [ series: [