셀렉트 어드민에서 2개 이상의 값을 바(bar) 차트 형태로 누적하여 쌓아서 표현하고 싶을 때 예제입니다.
options.scales
- 척도 설정
plugin.legend
- 범례 설정
chartOptions:
height: 200px
type: bar
x: date
backgroundColor:
UPB: RoyalBlue
BIT: Tomato
borderWidth:
UPB: 0
BIT: 0
y:
- UPB
- BIT
options:
scales:
x:
stacked: true
display: true
y:
stacked: true
title:
display: true
text: 거래량
plugins:
legend:
position: left