Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
HUAHUAI23 committed Dec 30, 2024
1 parent b23466c commit fe3a2b9
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export default function RequestDataChart({ data }: { data: ChartDataItem[] }): R
}
},
legend: {
data: [t('调用数'), t('异常数'), t('花费')],
data: [
t('dataDashboard.callCount'),
t('dataDashboard.exceptionCount'),
t('dataDashboard.cost')
],
bottom: 0
},
grid: {
Expand Down Expand Up @@ -62,7 +66,7 @@ export default function RequestDataChart({ data }: { data: ChartDataItem[] }): R
},
series: [
{
name: t('调用数'),
name: t('dataDashboard.callCount'),
type: 'line',
smooth: true,
data: data.map((item) => [item.timestamp, item.request_count]),
Expand All @@ -71,7 +75,7 @@ export default function RequestDataChart({ data }: { data: ChartDataItem[] }): R
}
},
{
name: t('异常数'),
name: t('dataDashboard.exceptionCount'),
type: 'line',
smooth: true,
data: data.map((item) => [item.timestamp, item.exception_count]),
Expand All @@ -80,7 +84,7 @@ export default function RequestDataChart({ data }: { data: ChartDataItem[] }): R
}
},
{
name: t('花费'),
name: t('dataDashboard.cost'),
type: 'line',
smooth: true,
data: data.map((item) => [item.timestamp, item.used_amount]),
Expand Down

0 comments on commit fe3a2b9

Please sign in to comment.