调整积分排名的样式

This commit is contained in:
aixianling
2024-09-29 14:51:31 +08:00
parent 3a5af5777c
commit f35c272a19

View File

@@ -61,7 +61,7 @@ const integralOrder = {
yAxis: { yAxis: {
type: "category", inverse: true, axisLine: hide, axisTick: hide, axisPointer: hide, type: "category", inverse: true, axisLine: hide, axisTick: hide, axisPointer: hide,
axisLabel: { axisLabel: {
showMaxLabel: true, align: 'left', margin:65, showMaxLabel: true, align: 'left', margin: 65,
color: "#9CB3C9", formatter: (name, index) => { color: "#9CB3C9", formatter: (name, index) => {
const icon = { const icon = {
0: "🥇", 1: "🥈", 2: "🥉", 0: "🥇", 1: "🥈", 2: "🥉",
@@ -585,6 +585,9 @@ export default {
}, },
areaId() { areaId() {
this.getData() this.getData()
},
isLastAreaLevel(v) {
this.chart.integralOrder.series.label.position[0] = v ? 760 : 390
} }
}, },
methods: { methods: {