Commit 0238f46d by liang ce

图表修改

parent 62761556
......@@ -81,7 +81,7 @@ export default {
dataAmount = (dataAmount * 100 + item.subsidyTotalAmount * 100) / 100
})
let unit = this.month === undefined ? '月' : '日'
let color = this.sceneType === 'MEAL' ? ['#3F9EFE'] : [`#FF4A7A`]
let color = this.sceneType === 'MEAL' ? ['#00CC66'] : [`#FADF33`]
myChart.setOption({
color: color,
title: {
......@@ -116,10 +116,7 @@ export default {
name: `(${this.month === undefined ? '月' : '日'})`, // 给X轴加单位
// nameLocation: 'middle',
type: 'category',
data: xAxisData,
axisTick: {
show: false
}
data: xAxisData
}
],
yAxis: {
......@@ -190,12 +187,8 @@ export default {
xAxis: [
{
name: `(${unit})`, // 给X轴加单位
// nameLocation: 'middle',
type: 'category',
data: xAxisData,
axisTick: {
show: false
}
data: xAxisData
}
],
yAxis: {
......@@ -282,9 +275,6 @@ export default {
// nameLocation: 'middle',
type: 'category',
data: xAxisData,
axisTick: {
show: false
}
},
yAxis: {
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