• Log inStart now

AreaChart

Usage

import { AreaChart } from 'nr1'

Examples

Props

accountIddeprecatednumber

Due November 1st, 2022

The accountId is deprecated, use accountIds instead

Sets the account ID to perform the query.

accountIdsnumber[]

Sets the account IDs 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.

onClickfunction
onClickAreafunction

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

onClickEventfunction

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

onClickLinefunction

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

onHoverAreafunction

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

onHoverEventfunction

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

onHoverLinefunction

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

querystring

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

styleobject

Inline style for custom styling.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.