Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
PieChart class
Signature
typescript
export declare class PieChart extends PureComponent<Props> Import
typescript
import { PieChart } from '@grafana/ui';Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| containerElement | any | ||
| defaultProps | static | {pieType: string;format: string;stat: string;strokeWidth: number;theme: GrafanaThemeType;} | |
| svgElement | any | ||
| tooltipElement | any | ||
| tooltipValueElement | any |
Methods
| Method | Modifiers | Description |
|---|---|---|
| componentDidMount() | ||
| componentDidUpdate() | ||
| draw() | ||
| render() |
containerElement property
Signature
typescript
containerElement: any;defaultProps property
Signature
typescript
static defaultProps: {
pieType: string;
format: string;
stat: string;
strokeWidth: number;
theme: GrafanaThemeType;
};svgElement property
Signature
typescript
svgElement: any;tooltipElement property
Signature
typescript
tooltipElement: any;tooltipValueElement property
Signature
typescript
tooltipValueElement: any;componentDidMount method
Signature
typescript
componentDidMount(): void;Returns:
void
componentDidUpdate method
Signature
typescript
componentDidUpdate(): void;Returns:
void
draw method
Signature
typescript
draw(): void;Returns:
void
render method
Signature
typescript
render(): JSX.Element;Returns:
JSX.Element
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Choose a product
Viewing: v7.1
Find another version
Scroll for more