From 9fdf2aed33479502c61318ecc575aa349d913f35 Mon Sep 17 00:00:00 2001 From: happycastle <41810556+happycastle114@users.noreply.github.com> Date: Fri, 1 Dec 2023 02:05:19 +0900 Subject: [PATCH] =?UTF-8?q?nice=20=F0=9F=91=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/organisms/Histogram.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/organisms/Histogram.tsx b/src/components/organisms/Histogram.tsx index 8cb732b..4312920 100644 --- a/src/components/organisms/Histogram.tsx +++ b/src/components/organisms/Histogram.tsx @@ -28,8 +28,6 @@ interface CustomHistogramConfig extends HistogramConfig { } export const Histogram = ({ data }: Props) => { - const ageMin = data[0].binMin - 1; - const ageMax = data[data.length - 1].binMax + 1; const [countMax, setCountMax] = useState(data[0].count); const [binWidth, setBinWidth] = useState( @@ -81,9 +79,8 @@ export const Histogram = ({ data }: Props) => { }, meta: { range: { - min: ageMin, - max: ageMax, tickInterval: 1, + nice: true, }, count: { min: 0,