Browse Source

data value 필터링

pull/2/head
hhjk00 10 months ago
parent
commit
7af53b0703
  1. 6
      src/components/statistics/StatisticsSearch.js

6
src/components/statistics/StatisticsSearch.js

@ -150,7 +150,7 @@ export default function StatisticsSearch({
} }
}, },
totalData = { totalData = {
labels: searchData.graphData.map(i => i.name), labels: searchData.graphData.filter(i => i.value).map(i => i.name),
datasets: [ datasets: [
{ {
data: total, data: total,
@ -205,10 +205,10 @@ export default function StatisticsSearch({
} }
}, },
topData = { topData = {
labels: searchData.topData.map(i => i.name), labels: searchData.topData.filter(i => i.value).map(i => i.name),
datasets: [ datasets: [
{ {
labels: searchData.topData.map(i => i.name), labels: searchData.topData.filter(i => i.value).map(i => i.name),
data: top, data: top,
// 레드버전 // 레드버전
// backgroundColor: [ // backgroundColor: [

Loading…
Cancel
Save