Const
setTimeScale() 호출 시 별도 값이 전달되지 않았을 때 적용되는 시간 축 기본 옵션입니다. unit, tooltipFormat, displayFormats.hour의 기본값을 제공합니다.
setTimeScale()
unit
tooltipFormat
displayFormats.hour
2.4.0
// setTimeScale('x')만 호출하면 아래 기본값이 적용됩니다.ChartWrapper.create('line', [], datasets) .setTimeScale('x') .build('time-scale-default');// 내부 기본값// {// unit: 'hour',// tooltipFormat: 'yyyy-MM-dd HH:mm',// displayFormats: {// hour: 'HH:mm'// }// } Copy
// setTimeScale('x')만 호출하면 아래 기본값이 적용됩니다.ChartWrapper.create('line', [], datasets) .setTimeScale('x') .build('time-scale-default');// 내부 기본값// {// unit: 'hour',// tooltipFormat: 'yyyy-MM-dd HH:mm',// displayFormats: {// hour: 'HH:mm'// }// }
Description
setTimeScale()호출 시 별도 값이 전달되지 않았을 때 적용되는 시간 축 기본 옵션입니다.unit,tooltipFormat,displayFormats.hour의 기본값을 제공합니다.Since
2.4.0
Example