study
패스트캠퍼스 챌린지 48일차
차트 라이브러리 만들어보기 - 차트 라이브러리 구현 index.js 파일에서 인스턴스로 만들어서 사용하는 chart.js 부분 import template from './chart.template'; const defaultOptions = { percent: 0, duration: 1000, frame: 30, } /** * Chart 클래스 */ class Chart { #template = template; #el; #percent; #duration; #label; #frame; #handle; /** * * @param {string} container - 마운트될 DOM 컨테이너 셀렉터 * @param {string} data - 옵션 데이타 duration, frame * @example *..
2022. 3. 12. 13:14