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

PropertyModifiersTypeDescription
containerElementany
defaultPropsstatic{
pieType: string;
format: string;
stat: string;
strokeWidth: number;
theme: GrafanaThemeType;
}
svgElementany
tooltipElementany
tooltipValueElementany

Methods

MethodModifiersDescription
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