Skip to content

Commit

Permalink
📂 docs. 그래프 컴포 위치이동
Browse files Browse the repository at this point in the history
  • Loading branch information
whl5105 committed Oct 2, 2022
1 parent e083b6a commit defb437
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ let optionData = {
};

const AdSummary = () => {
const [series, srtSeries] = useState(seriesData);
const [options, setOptions] = useState(optionData);

const [windowSize, setWindowSize] = useState(window.innerWidth);
useEffect(() => {
const handelResize = () => setWindowSize(window.innerWidth);
window.addEventListener("resize", handelResize);
return () => window.removeEventListener("resize", handelResize);
}, [windowSize]);
console.log(windowSize);
const [series, srtSeries] = useState(seriesData);
const [options, setOptions] = useState(optionData);

return (
<section id="adSummary">
<h3>광고 요약 보고서</h3>
<p>최근 3개월 광고비/매출</p>

<div className="adChart">
<ReactApexChart
series={series}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,4 @@ $title: $fc_blue300;
.adChart {
position: absolute;
bottom: 0;
// left: 50%;
// margin-left: -250px;
}

0 comments on commit defb437

Please sign in to comment.