Config
colors

asset[type=colors]

색상 목록을 미리 지정하고 pointcolors 등에 적용할 수 있다.
목록에서 색상을 꺼내오는 방식은 mode 속성으로 지정한다.

Options

colors: string[]

색상 목록.

id: string

에셋 id.
시리즈나 축에서 이 에셋 항목을 참조할 때 사용하는 키로서 차트 내에서 유일한 문자열로 반드시 지정해야 한다.

mode: 'normal'|'random'|'shuffle'

색상 목록에서 색을 꺼내오는 방식.

  • 'normal' 순서대로 가져오고 끝에 도달하면 처음으로 돌아간다.
  • 'random' 임의 위치의 색상을 가져온다.
  • 'shuffle' 첫 색상을 가져오기 전 항목들을 섞는다.

default :'normal'

type: 'colors'|'images'|'lineargradient'|'radialgradient'

  • 'colors'
  • 'images'
  • 'lineargradient'
  • 'radialgradient'