UNPKG

@carbon/charts

Version:
27 lines (26 loc) 1.28 kB
import { Title } from './title'; export declare class MeterTitle extends Title { type: string; render(): 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 titlestring the original string that needs truncation * @param maxWidth the max width the title can take */ truncateTitle(title: any, maxWidth: any): void; protected getMaxTitleWidth(): number; /** * Get the associated status icon for the data * @param status the active status for the meter chart */ protected getStatusIconPathString(status: any): "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"; }