From 36392b9bde7a29a10b96b92bf8c14dca63846d62 Mon Sep 17 00:00:00 2001 From: clz Date: Sat, 17 Sep 2022 21:34:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=F0=9F=9B=A0=EF=B8=8F:=20=20=E5=85=B3?= =?UTF-8?q?=E9=97=ADSelect=E7=9A=84showSearch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/charts/bar/index.tsx | 12 ++++++------ src/components/charts/pie/index.tsx | 2 +- src/pages/Record/Record.tsx | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/charts/bar/index.tsx b/src/components/charts/bar/index.tsx index 35a242d..a65e6ea 100644 --- a/src/components/charts/bar/index.tsx +++ b/src/components/charts/bar/index.tsx @@ -48,6 +48,12 @@ export const Bar = (props: IProps) => { }, series: [ { + type: "bar", + label: { + show: true, + position: "top", + margin: 8 + }, data: data.map(item => { return { value: item.y, @@ -56,12 +62,6 @@ export const Bar = (props: IProps) => { } } }), - type: "bar", - label: { - show: true, - position: "top", - margin: 8 - }, }, ], tooltip: { diff --git a/src/components/charts/pie/index.tsx b/src/components/charts/pie/index.tsx index 3ac0c9f..50dcdc8 100644 --- a/src/components/charts/pie/index.tsx +++ b/src/components/charts/pie/index.tsx @@ -41,7 +41,7 @@ export default function Pie(props: IProps) { // }, series: [ { - // name: `${year}-${month}`, + name: "金额", type: "pie", radius: ['40%', '70%'], // roseType: "radius", diff --git a/src/pages/Record/Record.tsx b/src/pages/Record/Record.tsx index a969b72..c2b611a 100644 --- a/src/pages/Record/Record.tsx +++ b/src/pages/Record/Record.tsx @@ -161,7 +161,7 @@ function Record() {