UNPKG

@carbon/charts

Version:
21 lines (20 loc) 781 B
import { RenderTypes } from '../../interfaces/enums'; import { Legend } from './legend'; import { ChartModel } from '../../model'; export declare class ColorScaleLegend extends Legend { type: string; renderType: RenderTypes; private gradient_id; private chartType; constructor(model: ChartModel, services: any, configs?: any); init(): void; handleAxisCompleteEvent: () => void; render(animate?: boolean): void; drawLinear(colorPairing: any, legendGroupElement: any, barWidth: any): void; /** * Renders quantized legend * @returns number (range start) */ drawQuantize(colorPairing: any, colorScheme: any, customColorsEnabled: any, legendGroupElement: any, barWidth: any): number; destroy(): void; }