Files
ETB/ETB-FrontEnd/node_modules/@mui/x-charts/esm/internals/dateHelpers.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

17 lines
907 B
TypeScript

import { NumberValue } from '@mui/x-charts-vendor/d3-scale';
import { AxisConfig } from "../models/index.js";
import { ChartsAxisProps } from "../models/axis.js";
/**
* Checks if the provided data array contains Date objects.
* @param data The data array to check.
* @returns A type predicate indicating if the data is an array of Date objects.
*/
export declare const isDateData: (data?: readonly any[]) => data is Date[];
/**
* Creates a formatter function for date values.
* @param data The data array containing Date or NumberValue objects.
* @param range The range for the time scale.
* @param tickNumber (Optional) The number of ticks for formatting.
* @returns A formatter function for date values.
*/
export declare function createDateFormatter(data: Iterable<Date | NumberValue>, range: number[], tickNumber?: number): AxisConfig<'band' | 'point', any, ChartsAxisProps>['valueFormatter'];