import { TextStyle } from './types'; import { CategoricalXValues } from '../../chart-data/types'; export type Axis = { enabled?: boolean; titleEnabled?: boolean; title?: string | null; gridLine?: boolean; labels?: boolean; type?: 'linear' | 'logarithmic'; min?: number | null; max?: number | null; tickInterval?: number | null; }; export type AxisMinMax = { min: number; max: number; }; export type AxisOrientation = 'horizontal' | 'vertical'; export interface AxisLabelsFormatterContextObject { value: string | number; axis: { categories: (string | number)[]; }; } export type AxisSettings = { type?: 'linear' | 'logarithmic'; title?: { text?: string | null; enabled?: boolean; margin?: number; style?: TextStyle; }; gridLineDashStyle?: 'Dot'; gridLineWidth?: number; gridLineColor?: string; tickWidth?: number; lineColor?: string; lineWidth?: number; offset?: number; labels?: { overflow?: 'none' | 'justify'; enabled?: boolean; autoRotation?: number[]; style?: TextStyle; rotation?: number; y?: number; formatter?: (this: AxisLabelsFormatterContextObject) => string; }; min?: number | null; max?: number | null; minPadding?: number; maxPadding?: number; tickInterval?: number | null; categories?: string[]; opposite?: boolean; plotBands?: AxisPlotBand[]; plotLines?: AxisPlotLine[]; tickmarkPlacement?: string; minorGridLineWidth?: number; minorTickWidth?: number; startOnTick?: boolean; endOnTick?: boolean; tickColor?: string; tickLength?: number; minorTickColor?: string; minorTickLength?: number; minorGridLineColor?: string; minorGridLineDashStyle?: string; stackLabels?: StackLabel; showLastLabel?: boolean; visible?: boolean; accessibility?: { description?: string; rangeDescription?: string; }; }; export type StackLabel = { style: TextStyle; crop: boolean; allowOverlap: boolean; enabled: boolean; rotation: number; labelrank: number; x?: number; y?: number; }; export type PlotBand = { text: string; from: number; to: number; }; export type AxisPlotLine = { color: string; dashStyle: string; width: number; value: number; }; export type AxisPlotBand = { from: number; to: number; color?: string; label?: { text: string; x: number; y: number; style?: TextStyle; }; }; export declare const getCategoricalCompareValue: (value: CategoricalXValues) => number; export declare const getDefaultDateFormat: (granularity?: string) => "HH:mm:ss" | "yyyy" | "yyyy Q" | "MM/yyyy" | "ww yyyy" | "M/d/yy" | "HH" | "M/d/yy HH" | "HH:mm" | undefined; //# sourceMappingURL=axis-section.d.ts.map