From ba46e126205069ca58260e81bcb5f7cf621f2d8a Mon Sep 17 00:00:00 2001 From: hhjk00 Date: Wed, 15 Nov 2023 10:48:10 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B7=B8=EB=9E=98=ED=94=84=20=EB=B3=80?= =?UTF-8?q?=EC=88=98=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/statistics/StatisticsSearch.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/statistics/StatisticsSearch.js b/src/components/statistics/StatisticsSearch.js index 4b5f338..4dfa483 100644 --- a/src/components/statistics/StatisticsSearch.js +++ b/src/components/statistics/StatisticsSearch.js @@ -22,7 +22,7 @@ export default function StatisticsSearch({ handlerTitleName, handleChangeSearchType }) { - const options = { + const barOptions = { elements: { rectangle: { borderWidth: 2, @@ -78,7 +78,7 @@ export default function StatisticsSearch({ ] } }, - data = { + totalData = { labels: searchData.graphData.map(i => i.name), datasets: [ { @@ -90,7 +90,7 @@ export default function StatisticsSearch({ ] }; - const options2 = { + const doughnutOptions = { responsive: true, maintainAspectRatio: true, responsiveAnimationDuration: 500, @@ -125,7 +125,7 @@ export default function StatisticsSearch({ bodyFontColor: '#000' } }, - data2 = { + topData = { labels: searchData.topData.map(i => i.name), datasets: [ { @@ -316,8 +316,8 @@ export default function StatisticsSearch({
- +
{/*