Chart Series Component

Function

a!chartSeries( label, data, links, color, showWhen )

Defines a series of data for a bar, column, line, or pie chart.

See also:

Parameters

Name Keyword Types Description

Label

label

Text

Name that corresponds to the data value or data values to display in the legend.

Data

data

Decimal Array

Value displayed for the related series.label.

Links

links

Array of Links

Array of values that determine what occurs when a user clicks a data point in the chart. Create links with:

Color

color

Text

Overrides the auto-assignment of series color with a specific value. Valid values: Any valid hex color or "ACCENT", "BLUEGRAY", "GREEN", "GOLD", "ORANGE", "PURPLE", "RED", "SKYBLUE", "LIMEGREEN", "YELLOW", "AMBER", "PINK", "VIOLETRED".

Visibility

showWhen

Boolean

Determines whether the series is displayed on the interface. When set to false, the series is hidden and is not evaluated. Default: true.

Usage considerations

Chart series color

The color of chart series can be defined by an overall chart color scheme or it can be configured individually. If a user has selected or created a color scheme, they can swap out the color of any individual series.

Users can choose between the assigned color scheme color, the environment’s accent color, a color such as "SKYBLUE" or "BLUEGRAY", or a custom color defined by a hex code. Any series configurations will take precedence over the assigned color scheme colors.

Examples

Use the interactive editor below to test out your code:

The a!chartseries() component is always used within a chart component.

Single series bar chart with label, Y-axis title, and no legend

Multiple series line chart with label, X-axis title, Y-axis title, and legend

The following patterns include usage of the Chart Series Component.

Open in Github Built: Tue, Sep 14, 2021 (11:54:22 AM)

On This Page

FEEDBACK