import { ContinuousScale } from '../../types/scale'; import { ColorAccessor, NumericAccessor } from '../../types/accessor'; import { ComponentConfigInterface } from '../component/config'; export interface XYComponentConfigInterface extends ComponentConfigInterface { /** Accessor function for getting the values along the X axis. Default: `undefined` */ x: NumericAccessor; /** A single of multiple accessor functions for getting the values along the Y axis. Default: `undefined` */ y: NumericAccessor | NumericAccessor[]; /** Accessor function for getting the unique data record id. Used for more persistent data updates. Default: `(d, i) => d.id ?? i` */ id?: ((d: Datum, i: number, ...any: any[]) => string); /** Component color accessor function. Default: `d => d.color` */ color?: ColorAccessor | ColorAccessor; /** Array of data color keys. Use to map data keys to colors. * Expected to the same length as the `y` accessors array. * Default: `undefined` */ colorKeys?: string[]; /** Scale for X dimension, e.g. Scale.scaleLinear(). If you set xScale you'll be responsible for setting it's `domain` and `range` as well. * Only continuous scales are supported. * Default: `undefined` */ xScale?: ContinuousScale; /** Scale for Y dimension, e.g. Scale.scaleLinear(). If you set yScale you'll be responsible for setting it's `domain` and `range` as well. * Only continuous scales are supported. * Default: `undefined` */ yScale?: ContinuousScale; /** Identifies whether the component should be excluded from overall X and Y domain calculations or not. * This property can be useful when you want pass individual data to a component and you don't want it to affect * the scales of the chart. * Default: `false` */ excludeFromDomainCalculation?: boolean; } export declare const XYComponentDefaultConfig: XYComponentConfigInterface;