API REFERENCE
sectionToggled
CustomEvent.detail 타입: { index: number; sectionId: string; disabled: boolean }. 이벤트 이름은 대소문자를 구분합니다.
정의
이벤트 이름: sectionToggled. 대소문자를 구분합니다. payload는 CustomEvent<{ index: number; sectionId: string; disabled: boolean }>의 detail에서 읽습니다.
chart.addEventListener('sectionToggled', event => {
console.log(event.detail); // { index: number; sectionId: string; disabled: boolean }
});