[update 首页] 收入分类统计、应收账款图例增加滚动

This commit is contained in:
danshihao
2024-05-11 16:23:48 +08:00
parent fd37cb5de6
commit eb5c3e77e0
2 changed files with 7 additions and 8 deletions
+4 -5
View File
@@ -190,7 +190,7 @@ export default {
initEcharts(data) { initEcharts(data) {
let color = ['#069F99', '#88C87E', '#6D7FD0', '#FA9D81', '#A5B3FF', '#519FD1', '#55433B', '#9ABECA'] let color = ['#069F99', '#88C87E', '#6D7FD0', '#FA9D81', '#A5B3FF', '#519FD1', '#55433B', '#9ABECA']
let echartsData = data.reduce((pre, val) => { let echartsData = data.reduce((pre, val) => {
return val.name !== '总数' ? pre.concat({value: val.value, name: val.name_dictText, money: val.money}) : pre return pre.concat({value: val.value, name: val.name_dictText, money: val.money})
}, []) }, [])
echartsData = this.initPoint(echartsData, color) echartsData = this.initPoint(echartsData, color)
let chartDom = document.getElementById('incomeSort') let chartDom = document.getElementById('incomeSort')
@@ -212,10 +212,9 @@ export default {
}, },
legend: { legend: {
bottom: '2%', bottom: '2%',
left: 'center', right: '2%',
padding: [0, '2%', 0, '2%'], padding: [0,70, 0, 70],
type: 'scroll', itemGap:40 // 图例之间的间距
itemGap:20 // 图例之间的间距
}, },
labelLine: { labelLine: {
lineStyle: { lineStyle: {
+3 -3
View File
@@ -206,11 +206,11 @@ export default {
} }
}, },
legend: { legend: {
left: 'center',
bottom: '2%', bottom: '2%',
padding: [0, '2%', 0, '2%'], width: '80%',
// padding: [0, 50, 0, 50],
type: 'scroll', type: 'scroll',
itemGap:20 // 图例之间的间距 itemGap:50
}, },
labelLine: { labelLine: {
lineStyle: { lineStyle: {