Commit 0238f46d by liang ce

图表修改

parent 62761556
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
dataAmount = (dataAmount * 100 + item.subsidyTotalAmount * 100) / 100 dataAmount = (dataAmount * 100 + item.subsidyTotalAmount * 100) / 100
}) })
let unit = this.month === undefined ? '月' : '日' let unit = this.month === undefined ? '月' : '日'
let color = this.sceneType === 'MEAL' ? ['#3F9EFE'] : [`#FF4A7A`] let color = this.sceneType === 'MEAL' ? ['#00CC66'] : [`#FADF33`]
myChart.setOption({ myChart.setOption({
color: color, color: color,
title: { title: {
...@@ -116,10 +116,7 @@ export default { ...@@ -116,10 +116,7 @@ export default {
name: `(${this.month === undefined ? '月' : '日'})`, // 给X轴加单位 name: `(${this.month === undefined ? '月' : '日'})`, // 给X轴加单位
// nameLocation: 'middle', // nameLocation: 'middle',
type: 'category', type: 'category',
data: xAxisData, data: xAxisData
axisTick: {
show: false
}
} }
], ],
yAxis: { yAxis: {
...@@ -190,12 +187,8 @@ export default { ...@@ -190,12 +187,8 @@ export default {
xAxis: [ xAxis: [
{ {
name: `(${unit})`, // 给X轴加单位 name: `(${unit})`, // 给X轴加单位
// nameLocation: 'middle',
type: 'category', type: 'category',
data: xAxisData, data: xAxisData
axisTick: {
show: false
}
} }
], ],
yAxis: { yAxis: {
...@@ -282,9 +275,6 @@ export default { ...@@ -282,9 +275,6 @@ export default {
// nameLocation: 'middle', // nameLocation: 'middle',
type: 'category', type: 'category',
data: xAxisData, data: xAxisData,
axisTick: {
show: false
}
}, },
yAxis: { yAxis: {
name: '(元)', name: '(元)',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment