@nova-ui/charts
Version:
Nova Charts is a library created to provide potential consumers with solutions for various data visualizations that conform with the Nova Design Language. It's designed to solve common patterns identified by UX designers, but also be very flexible so that
27 lines (26 loc) • 841 B
TypeScript
import { IGaugeLabelsPluginConfig } from "./types";
import { ChartPlugin } from "../../common/chart-plugin";
/**
* A chart plugin that handles the rendering of labels for a donut gauge
*/
export declare class LinearGaugeLabelsPlugin extends ChartPlugin {
config: IGaugeLabelsPluginConfig;
/** The default plugin configuration */
DEFAULT_CONFIG: IGaugeLabelsPluginConfig;
private readonly destroy$;
private lasagnaLayer;
private isHorizontal;
private thresholdsSeries;
constructor(config?: IGaugeLabelsPluginConfig);
initialize(): void;
update(): void;
updateDimensions(): void;
destroy(): void;
private updateData;
private drawThresholdLabels;
private xTranslate;
private yTranslate;
private getLabelOffset;
private getTextAnchor;
private getAlignmentBaseline;
}