This commit is contained in:
weiwei committed 2025-08-14 09:34:02 +08:00
1 parent ecaaae4518
commit ccb2a8b31e
1 file changed
+5 -5
+5 -5
View File
@@ -8,7 +8,7 @@
</tm-sheet>
<tm-sheet :margin="[0, 20]">
<view class="prefix_title mb-15rpx">近一周食堂购买人数趋势图</view>
<view class="prefix_title mb-15rpx">近一周各食堂购买数量趋势图</view>
<view class="w-full h-600rpx">
<!-- tooltipFormat="canteenAreaTooltip" -->
<qiun-data-charts type="area" :opts="areaChartOpts" :chartData="areaChartData" />
@@ -116,7 +116,7 @@ const areaChartOpts = {
enableScroll: false,
legend: {
float: "center",
padding: 2,
padding: 10,
margin: 2,
fontSize: 12,
lineHeight: 12,
@@ -131,9 +131,9 @@ const areaChartOpts = {
showTitle: true,
data: [
{
title: "购买人数",
title: "购买数量",
titleOffsetX: 10,
titleOffsetY: -4,
titleOffsetY: -6,
},
],
},
@@ -194,7 +194,7 @@ const getAreaChartData = async () => {
const name = Object.keys(item)[0]
const data = item[name].map((item: any) => Number(item.payCount))
return {
name,
name: name.replace("食堂", ""),
data,
}
})