|
|
@@ -23,7 +23,7 @@
|
|
|
const entries = data.map((item) => item.entryCount || 0);
|
|
|
setOptions({
|
|
|
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },
|
|
|
- legend: { data: ['预约人数', '入场人数'], top: 0 },
|
|
|
+ legend: { data: ['预约人次', '入场人数次'], top: 0 },
|
|
|
grid: { left: '3%', right: '4%', bottom: '3%', containLabel: true },
|
|
|
xAxis: {
|
|
|
type: 'category',
|
|
|
@@ -32,8 +32,8 @@
|
|
|
},
|
|
|
yAxis: { type: 'value' },
|
|
|
series: [
|
|
|
- { name: '预约人数', type: 'bar', data: reservations, itemStyle: { color: '#4A90D9' }, barGap: '0%' },
|
|
|
- { name: '入场人数', type: 'bar', data: entries, itemStyle: { color: '#69C0C0' } },
|
|
|
+ { name: '预约人次', type: 'bar', data: reservations, itemStyle: { color: '#4A90D9' }, barGap: '0%' },
|
|
|
+ { name: '入场人数次', type: 'bar', data: entries, itemStyle: { color: '#69C0C0' } },
|
|
|
],
|
|
|
});
|
|
|
},
|