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,8 +25,12 @@ export default {
bottom: 0, bottom: 0,
containLabel: true containLabel: true
}, },
xAxis: [ tooltip: {
{ show: true,
type: 'shadow',
trigger: 'item'
},
xAxis: {
type: 'category', type: 'category',
data: ['A', 'B', 'C', 'D', 'E'], data: ['A', 'B', 'C', 'D', 'E'],
axisTick: { axisTick: {
@ -40,8 +44,7 @@ export default {
axisLabel: { axisLabel: {
color: '#fff' color: '#fff'
} }
} },
],
yAxis: [ yAxis: [
{ {
type: 'value', type: 'value',