apexchart] 에러 마스터

짱효·2024년 12월 27일

✏️

목록 보기
6/7

⛔️ 머지했는데 RangeError: Maximum call stack size exceeded에러 발생!

  • 🚀 chart.state.options에 있는 respensive 요소 지우기

참고링크:https://github.com/apexcharts/ng-apexcharts/issues/349

⛔️ 클릭하면 "Cannot read property 'getAttribute' of null" 에러 발생

  • 🚀 event: 클릭이벤트에 setTimeout 주기
 chart: { events: { dataPointSelection: (event, chartContext, config) =>  setTimeout(() => {smth.onClick(), 1000}); } } },

참고링크:https://github.com/apexcharts/react-apexcharts/issues/203

⛔️ 클릭하면 위로 스크롤되는 문제

고정된 높이를 가진 차트로 감싸보세요!

참고링크: https://stackoverflow.com/questions/68075221/prevent-apexcharts-from-scrolling-to-top-of-page-on-load

profile
✨🌏확장해 나가는 프론트엔드 개발자입니다✏️

0개의 댓글