From bdd1b4503bae91ce07f4f497880e5e793883b66c Mon Sep 17 00:00:00 2001 From: Rivery <9858560+xigongdaEricyang@users.noreply.github.com> Date: Tue, 10 Jan 2023 17:59:50 +0800 Subject: [PATCH] 1230bugfix (#191) --- src/components/Charts/LineChart.tsx | 3 +++ src/config/locale/zh-CN/rules.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Charts/LineChart.tsx b/src/components/Charts/LineChart.tsx index bc0e8e55..35eb88ed 100644 --- a/src/components/Charts/LineChart.tsx +++ b/src/components/Charts/LineChart.tsx @@ -118,7 +118,10 @@ function LineChart(props: IProps, ref) { if ((max - min) < 5) { max = max + 5; min = min < 0 ? min - 5 : 0; + } else { + min = 0; } + yMin.current = min; yMax.current = max; const tickInterval = Math.round((max - min) / 5); diff --git a/src/config/locale/zh-CN/rules.json b/src/config/locale/zh-CN/rules.json index 80ff8d4a..43ee1cfc 100644 --- a/src/config/locale/zh-CN/rules.json +++ b/src/config/locale/zh-CN/rules.json @@ -1,5 +1,5 @@ { "usernameRequired": "请输入用户名", "passwordRequired": "请输入密码", - "versionRequired":"请输入nebula版本" + "versionRequired":"请输入 NebulaGraph 版本" } \ No newline at end of file