UNPKG

@nova-ui/charts

Version:

Nova Charts is a library created to provide potential consumers with solutions for various data visualizations that conform with the Nova Design Language. It's designed to solve common patterns identified by UX designers, but also be very flexible so that

31 lines (30 loc) 1.21 kB
import { Duration } from "moment/moment"; import { TimeScale } from "./time-scale"; import { IBandScale } from "./types"; export declare function isDaylightSavingTime(d: Date): boolean; /** * Scale designed to support regular interval based data. */ export declare class TimeIntervalScale extends TimeScale implements IBandScale<Date> { private _bandScale; private _interval; constructor(interval: Duration, id?: string); interval(): Duration; interval(value: Duration): TimeIntervalScale; domain(domain?: Date[]): any; range(range?: [number, number]): any; getBands(): Date[]; convert(value: Date, position?: number): number; /** * Converts the specified coordinate into the value of the closest band data point * * @param {number} coordinate The coordinate to convert * @returns {string} The value of the closest band data point */ invert(coordinate: number): Date | undefined; bandwidth(): number; truncToInterval(datetime: Date | undefined, interval: Duration, isDomainChange?: boolean): Date | undefined; isContinuous(): boolean; defaultTitleFormatter: (inputDate: Date) => string; private getBandsForInterval; }