This commit is contained in:
‘937886381’
2025-11-13 13:29:46 +08:00
parent bff6efbaa8
commit 5ddab768ef
33 changed files with 153 additions and 251 deletions

View File

@@ -10,6 +10,12 @@ export default {
data() {
return {};
},
props: {
yName: {
type: String,
default: () => '元/㎡'
},
},
mounted() {
this.$nextTick(() => {
this.initData();
@@ -63,14 +69,14 @@ export default {
interval: 0,
padding: [5, 0, 0, 0] // 标签向下偏移,避免与柱子底部重叠
},
data: ['漳州', '桐城', '合肥', '宜兴', '自贡', '洛阳']
data: ['6月', '7月', '8月', '9月', '10月', '11月']
}
],
yAxis: [
// 左侧Y轴目标/达标/未达标(数量,单位“片”)
{
type: 'value',
name: '元',
name: this.yName,
nameTextStyle: {
color: 'rgba(0, 0, 0, 0.45)',
fontSize: 12,