UNPKG

@carbon/charts

Version:
30 lines (29 loc) 1.4 kB
import { Title } from './title'; import { RenderTypes, Statuses } from '../../interfaces/enums'; export declare class MeterTitle extends Title { type: string; renderType: RenderTypes; render(animate?: boolean): void; displayBreakdownTitle(): void; displayTotal(): void; /** * Appends the corresponding status based on the value and the peak. */ displayStatus(): void; /** * Appends the associated percentage to the end of the title */ appendPercentage(): void; /** * Uses the parent class truncate logic * @param title d3 selection of title element that will be truncated * @param maxWidth the max width the title can take */ truncateTitle(title: any, maxWidth: number): void; protected getMaxTitleWidth(): number; /** * Get the associated status icon for the data * @param status the active status for the meter chart */ protected getStatusIconPathString(status: Statuses): "M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z" | "M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z" | "M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"; }