import { Size, Range } from '../../utilities'; /** * Optional properties for customizing axis components. * @member title the title of the axis. * @member fontSize the font size of the title in pixels. Tick labels are 3/4 this value. * @member ticks list of numbers within the domain that should have ticks; if not set, a default set will be calculated. * @member lineProps style applied to the axis lines (SVG elements). */ export interface OptionalAxisProps { title?: string; fontSize?: number; ticks?: number[]; formatTick?: (tick: number) => string; lineProps?: { [key: string]: any; }; } /** * Properties of the XAxis and YAxis components. * @member dimensions the size of the axis component, relative to the containing SVG. * @member domain axis limits, relative to the data coordinates. */ export interface AxisProps extends OptionalAxisProps { dimensions: Size; domain: Range; }