API REFERENCE

legend

Show the legend. Undefined lets each chart use its own default (marimekko/dot-plot default on; the cartesian charts default off).

정의

항목값
JavaScript 프로퍼티legend
HTML attributelegend
타입boolean
기본값undefined

undefined는 이 속성을 명시하지 않은 상태입니다. 실제 표시 값은 차트 종류와 다른 설정에 따라 결정될 수 있습니다.

설정 예제

javascript
// sy-line-chart를 등록하고 요소를 만든 뒤 설정합니다.
chart.legend = true;