@grafana/ui
Version:
Grafana Components Library
27 lines (26 loc) • 923 B
TypeScript
import { PureComponent } from 'react';
import * as React from 'react';
import { DisplayValue, FieldConfig, GrafanaTheme2 } from '@grafana/data';
import { VizTextDisplayOptions, VizOrientation } from '@grafana/schema';
export interface Props {
height: number;
field: FieldConfig;
showThresholdMarkers: boolean;
showThresholdLabels: boolean;
width: number;
value: DisplayValue;
text?: VizTextDisplayOptions;
onClick?: React.MouseEventHandler<HTMLElement>;
className?: string;
theme: GrafanaTheme2;
orientation?: VizOrientation;
}
export declare class Gauge extends PureComponent<Props> {
canvasElement: HTMLDivElement | null;
static defaultProps: Partial<Props>;
componentDidMount(): void;
componentDidUpdate(): void;
draw(): void;
renderVisualization: () => import("react/jsx-runtime").JSX.Element;
render(): import("react/jsx-runtime").JSX.Element;
}