• /
  • Log in
  • Free account

SparklineChart

Usage

import { SparklineChart } 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.

onClickfunction
onClickEventfunction

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

onClickSparklinefunction

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

onHoverEventfunction

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

onHoverSparklinefunction

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

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.