|
|
@@ -132,13 +132,13 @@ export function buildTradeMonthlyOption(tradeMonthlyTrend) {
|
|
132
|
132
|
color: ['#5ef0c8', '#ecd27b'],
|
|
133
|
133
|
tooltip: { trigger: 'axis' },
|
|
134
|
134
|
legend: {
|
|
135
|
|
- bottom: 0,
|
|
|
135
|
+ top: 0,
|
|
136
|
136
|
left: 'center',
|
|
137
|
137
|
textStyle: { color: '#a8d4c8', fontSize: 10 },
|
|
138
|
138
|
itemWidth: 14,
|
|
139
|
139
|
itemHeight: 8
|
|
140
|
140
|
},
|
|
141
|
|
- grid: { ...GRID, bottom: 36 },
|
|
|
141
|
+ grid: { ...GRID, bottom: 10 },
|
|
142
|
142
|
xAxis: {
|
|
143
|
143
|
type: 'category',
|
|
144
|
144
|
data: MONTHS,
|
|
|
@@ -210,7 +210,7 @@ export function buildSalesDestinationBarOption(salesDestination) {
|
|
210
|
210
|
return `${p.name}<br/>${p.value} 头 (${ratio})`
|
|
211
|
211
|
}
|
|
212
|
212
|
},
|
|
213
|
|
- grid: { ...GRID, top: 12, bottom: 28 },
|
|
|
213
|
+ grid: { ...GRID, top: 12, bottom: 10 },
|
|
214
|
214
|
xAxis: {
|
|
215
|
215
|
type: 'category',
|
|
216
|
216
|
data: names,
|
|
|
@@ -361,7 +361,7 @@ export function buildMallOrderTrendOption(mallOrderTrend, mallStatsAvailable = t
|
|
361
|
361
|
return {
|
|
362
|
362
|
color: ['#6eb5ff'],
|
|
363
|
363
|
tooltip: { trigger: 'axis' },
|
|
364
|
|
- grid: { ...GRID, top: 12, bottom: 32 },
|
|
|
364
|
+ grid: { ...GRID, top: 12, bottom: 10 },
|
|
365
|
365
|
xAxis: {
|
|
366
|
366
|
type: 'category',
|
|
367
|
367
|
data: MONTHS,
|
|
|
@@ -424,7 +424,11 @@ export function buildShopEntryPieOption(shopEntry, mallStatsAvailable = true) {
|
|
424
|
424
|
label: {
|
|
425
|
425
|
color: '#e8eef5',
|
|
426
|
426
|
fontSize: 9,
|
|
427
|
|
- formatter: (p) => `${p.name}\n${p.percent}%`
|
|
|
427
|
+ formatter: (p) => {
|
|
|
428
|
+ const row = shopEntry.items.find((it) => `${it.month}月` === p.name)
|
|
|
429
|
+ const ratio = row?.ratio != null ? Number(row.ratio).toFixed(1) : p.percent
|
|
|
430
|
+ return `${p.name}\n${ratio}%`
|
|
|
431
|
+ }
|
|
428
|
432
|
},
|
|
429
|
433
|
labelLine: { length: 6, length2: 4 },
|
|
430
|
434
|
data
|
|
|
@@ -457,7 +461,7 @@ export function buildRegionRankBarOption(regionRank, mallStatsAvailable = true)
|
|
457
|
461
|
return `${p.name}<br/>${Number(p.value).toFixed(2)} 万元`
|
|
458
|
462
|
}
|
|
459
|
463
|
},
|
|
460
|
|
- grid: { ...GRID, top: 12, bottom: 28 },
|
|
|
464
|
+ grid: { ...GRID, top: 12, bottom: 10 },
|
|
461
|
465
|
xAxis: {
|
|
462
|
466
|
type: 'category',
|
|
463
|
467
|
data: names,
|