customize time series scales

interface TimeScaleOptions {
    addSpaceOnEdges?: number;
    localeObject?: Locale;
    showDayName?: boolean;
    timeInterval?: TimeIntervalNames;
    timeIntervalFormats?: TimeIntervalFormats;
}

Properties

addSpaceOnEdges?: number
localeObject?: Locale

locale object, for more information see https://date-fns.org/v2.11.0/docs/Locale. example: import { fr as localeObject } from 'date-fns/locale'. available locale objects are: https://github.com/date-fns/date-fns/tree/master/src/locale

showDayName?: boolean

if it's true, days are shown as mon-sun, otherwise days are shown as number 1-31

timeInterval?: TimeIntervalNames

this can be used to override the time interval that's chosen by the library

timeIntervalFormats?: TimeIntervalFormats

formats for each time interval