stz-chart-maker Documentation - v2.3.7
    Preparing search index...

    Variable DefaultTimeScaleOptionsConst

    DefaultTimeScaleOptions: {
        displayFormats: { hour: string };
        tooltipFormat: string;
        unit: string;
    } = ...

    Type Declaration

    • displayFormats: { hour: string }
    • tooltipFormat: string
    • unit: string

    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'
    // }
    // }