This commit is contained in:
stt
2025-12-08 08:54:48 +08:00
7 changed files with 443 additions and 207 deletions

View File

@@ -102,8 +102,8 @@ const tableStore: any = new TableStore({
},
legend: {
orient: 'vertical',
top: 'center',
right: '5%',
top: '50',
right: '10',
formatter: function (name: string) {
const item = chartData.value.find((i: any) => i.name === name)
return item ? `${name} ${item.value}` : name

View File

@@ -106,8 +106,8 @@ const eventEcharts = () => {
},
legend: {
orient: 'vertical',
top: 'center',
right: '5%',
top: '50',
right: '10',
formatter: function (e: any) {
return e + ' ' + data.value.filter((item: any) => item.name == e)[0].value + '次'
}