update order chart style

This commit is contained in:
Timi
2026-09-23 14:59:50 +08:00
parent 139afad052
commit 7595df5df9
10 changed files with 129 additions and 95 deletions
@@ -35,23 +35,43 @@ function buildOption(visibleDateTextList: string[]): EChartsOption {
axisTick: { show: false },
axisLabel: { color: "#52607a", interval: "auto", hideOverlap: true }
},
yAxis: [
{
type: "value",
name: "基础单位",
minInterval: 1,
axisLabel: { color: "#52607a" },
splitLine: { lineStyle: { color: "rgba(148, 163, 184, .2)" } }
},
{
type: "value",
name: "订单",
position: "right",
minInterval: 1,
axisLabel: { color: "#52607a" },
splitLine: { show: false }
}
],
series: [
{
name: "直接销量",
type: "bar",
stack: "quantity",
yAxisIndex: 0,
data: visibleDateTextList.map(dateText => getNumber(getDailyItem(props.list, dateText)?.directBaseQuantity))
},
{
name: "套餐权益",
type: "bar",
stack: "quantity",
yAxisIndex: 0,
data: visibleDateTextList.map(dateText => getNumber(getDailyItem(props.list, dateText)?.packageBaseQuantity))
},
{
name: "订单数",
type: "line",
smooth: true,
yAxisIndex: 1,
data: visibleDateTextList.map(dateText => getNumber(getDailyItem(props.list, dateText)?.orderCount))
}
]