增加项目成本页面
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<view class="charts-box">
|
||||
<qiun-data-charts
|
||||
type="column"
|
||||
:chartData="chartData"
|
||||
<qiun-data-charts
|
||||
type="column"
|
||||
:chartData="chartData"
|
||||
:opts="chartOpts"
|
||||
/>
|
||||
</view>
|
||||
@@ -16,7 +16,7 @@ export default {
|
||||
chartData: {
|
||||
type: Object,
|
||||
default: {
|
||||
categories: [], // 日期(1日-当前日或当月总天数)
|
||||
categories: [],
|
||||
series: [] // 库存趋势数据
|
||||
}
|
||||
}
|
||||
@@ -25,9 +25,18 @@ export default {
|
||||
return {
|
||||
// 图表配置
|
||||
chartOpts: {
|
||||
title: { text:'月度收支', left:'center' },
|
||||
tooltip:{ trigger:'axis' },
|
||||
legend:{ data:['支出','收入(CNY)','收入(USD)'], bottom:0 },
|
||||
legend: true, // 显示图例
|
||||
dataLabel: false, // 不显示数据标签
|
||||
xAxis: {
|
||||
fontColor: "#666",
|
||||
fontSize: 12
|
||||
},
|
||||
yAxis: {
|
||||
fontColor: "#666",
|
||||
fontSize: 12,
|
||||
gridColor: "#eee"
|
||||
},
|
||||
color: ["#007aff", "#ff9500", '#22bbff']
|
||||
}
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user