setZoom() / addZoom()에서 사용하는 chartjs-plugin-zoom 호환 옵션입니다.
setZoom()
addZoom()
chartjs-plugin-zoom
limits는 하위 plugin으로 그대로 전달됩니다. autoLimits는 stz-chart-maker가 제공하는 편의 옵션이며, 마운트 전에 limits로 변환됩니다.
limits
autoLimits
stz-chart-maker
chart.setZoom(true, { limits: { x: { min: 'original', max: 'original' }, y: { min: 0, max: 100 }, },}); Copy
chart.setZoom(true, { limits: { x: { min: 'original', max: 'original' }, y: { min: 0, max: 100 }, },});
chart.setZoom(true, { autoLimits: 'original',}); Copy
chart.setZoom(true, { autoLimits: 'original',});
chart.setZoom(true, { autoLimits: { x: 'original', y1: 'data' },}); Copy
chart.setZoom(true, { autoLimits: { x: 'original', y1: 'data' },});
Optional
original은 초기 렌더 범위를, data는 현재 데이터 범위를 기준으로 zoom 한계를 자동 설정합니다. 문자열을 주면 x, y 축 모두에 적용되고, 객체를 주면 축/scale id별로 개별 설정할 수 있습니다.
original
data
x
y
limits를 사용하세요.
setZoom()/addZoom()에서 사용하는chartjs-plugin-zoom호환 옵션입니다.limits는 하위 plugin으로 그대로 전달됩니다.autoLimits는stz-chart-maker가 제공하는 편의 옵션이며, 마운트 전에limits로 변환됩니다.Example
Example
Example