diff --git a/src/components/statistics/StatisticsSearch.js b/src/components/statistics/StatisticsSearch.js index 4b5f3385..4dfa4830 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({
- +
{/*