API
Legend

Legend extends ChartItem

차트 시리즈 구성을 직관적으로 이해할 수 있도록 도와주는 범례 설정 모델.
visible 기본값이 undefined이고, 따로 지정하지 않으면 시리즈가 둘 이상 포함돼야 legend가 표시된다.
범례 개요 페이지를 참조한다.

Properties

visible: boolean (opens in a new tab) readonly

표시 여부.
options.visible 값을 그대로 return하는 것이 아니라, undefinednull 등으로 지정하는 경우 모델의 상태에 따라 truefalse로 해석될 수 있다.
설정의 경우 updateOptions({visible: value})로 지정하는 것과 동일하다.

default :undefined

Methods

destroy(): null

객체가 소유한 참조 등을 해제하고 null을 리턴한다.

list = lis.destroy();

return null