seriesSetRootNode (event)

트리맵(treemap), 선버스트(sunburst) 차트에서 하위 단계로 이동(드릴)하거나 상위로 돌아가 표시 기준(루트) 노드가 바뀌는 시점에 발생하는 이벤트입니다.

Info

Name Type Required Description
event object 선택 이벤트 인자 객체
type string 선택(setRootNode) 이벤트 타입
newRootId string 선택 새로 표시될 루트 노드의 id
previousRootId string 선택 이전 루트 노드의 id
trigger string 선택 변경 원인 (예: click, traverseUpButton)
chart object 선택 IBChart 객체

Context Info

Name Type Required Description
this object 선택 시리즈 속성
this.name string 선택 시리즈명
this.index number 선택 시리즈 인덱스
this.data array 선택 시리즈의 데이터

Example

myChart.setEvents({
  seriesSetRootNode: function(event) {
    console.log("seriesSetRootNode: " + event.previousRootId + " → " + event.newRootId);
  }
});

myChart.setEventListener("seriesSetRootNode", function(event){
    console.log("seriesSetRootNode: " + event.previousRootId + " → " + event.newRootId);
});

Since

version desc
7.3.1.32