• /
  • Log in
  • Free account

PieChart

Usage

import { PieChart } from 'nr1'

Examples

Props

accountIdnumber

Sets the account ID to perform the query.

classNamestring

Appends class names to the component.

dataobject[]

Data is an array of objects where each object represents a series to be drawn. Each series comprises visualization metadata and an array of data points.

fullHeightboolean
DEFAULT
false

Expands the chart to occupy all available height.

fullWidthboolean
DEFAULT
false

Expands the chart to occupy all available width.

onClickPiefunction

Adds a click listener that gets triggered when the user clicks over the corresponding pie.

onHoverPiefunction

Adds a hover listener that gets triggered when the cursor is hovered over the corresponding pie.

querystring

NRQL query used for fetching data. The query is performed against the provided accountId.

styleobject

Inline style for custom styling.

Create issueEdit page
Copyright © 2021 New Relic Inc.