Skip to content

Commit

Permalink
fix(mis): 修复了平台数据统计折线图溢出的问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
usaveh committed May 20, 2024
1 parent 772160f commit 468def2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion apps/mis-web/src/pageComponents/admin/DataLineChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ export const DataLineChart: React.FC<Props> = ({
lineType = "linear",
toolTipFormatter = (value) => value,
}) => {
console.log(data);
return (
<StatisticContainer>
{isLoading ? <Spin /> : (
Expand Down
4 changes: 2 additions & 2 deletions apps/mis-web/src/pages/admin/statistic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ requireAuth((u) => u.platformRoles.includes(PlatformRole.PLATFORM_ADMIN))
data={
newUserCountData.map((d) => ({
x: d.date.format("YYYY-MM-DD"),
y: Number(d.count),
y: d.count,
}))}
isLoading={newUserLoading}
title={t(p("newUserCount"))}
Expand All @@ -413,7 +413,7 @@ requireAuth((u) => u.platformRoles.includes(PlatformRole.PLATFORM_ADMIN))
<DataLineChart
data={activeUserCountData.map((d) => ({
x: d.date.format("YYYY-MM-DD"),
y: Number(d.count),
y: d.count,
}))}
title={t(p("activeUserCount"))}
toolTipFormatter={(value) => [value, t(p("userCount"))]}
Expand Down

0 comments on commit 468def2

Please sign in to comment.