UNPKG

@carbon/charts

Version:
25 lines (24 loc) 944 B
import { AxisScale, Selection as D3Selection } from 'd3'; import { Component } from '../component'; import { ScaleTypes, RenderTypes } from '../../interfaces/enums'; import { ChartModel } from '../../model/model'; export declare class Axis extends Component { type: string; renderType: RenderTypes; margins: any; truncation: { left: boolean; right: boolean; top: boolean; bottom: boolean; }; scale: AxisScale<any>; scaleType: ScaleTypes; constructor(model: ChartModel, services: any, configs?: any); render(animate?: boolean): void; addEventListeners(): void; getInvisibleAxisRef(): D3Selection<import('d3-selection').BaseType, any, Element, any>; getTitleRef(): D3Selection<import('d3-selection').BaseType, any, Element, any>; getNumberOfFittingTicks(size: number, tickSize: number, spaceRatio: number): number; destroy(): void; }