Area spline

Read smooth magnitude against the zero baseline.

Import
@neural-charts/web/cartesian
Data
areaspline

Live demo

Container width

The chart fits its available space automatically. Choose a width to simulate a different container.

Animation
240ms
Contributions during a campaignRead total activity and compare three channels through the highlighted campaign window.00252550507575100100Q1Q1Q2Q2Q3Q3Q4Q4Q5Q5Q6Q6383858585858757574749494Campaign periodCampaign period

Contributions during a campaign

Read total activity and compare three channels through the highlighted campaign window.

Original data
SeriesCategory XidxyVisible
DirectQ1direct-0q018Yes
DirectQ2direct-1q128Yes
DirectQ3direct-2q222Yes
DirectQ4direct-3q336Yes
DirectQ5direct-4q430Yes
DirectQ6direct-5q542Yes
PartnersQ1partner-0q012Yes
PartnersQ2partner-1q116Yes
PartnersQ3partner-2q224Yes
PartnersQ4partner-3q319Yes
PartnersQ5partner-4q427Yes
PartnersQ6partner-5q524Yes
OnlineQ1online-0q08Yes
OnlineQ2online-1q114Yes
OnlineQ3online-2q212Yes
OnlineQ4online-3q320Yes
OnlineQ5online-4q417Yes
OnlineQ6online-5q528Yes

Tap a data point or explore it with the pointer or keyboard.

Configurator

Adjust the presentation and interaction of this example.

Chart elements and interaction
Chart toolbar
  1. Zoom and pan
  2. CSV
  3. PNG
  4. SVG

Interactive examples

Open a chart to explore its data, try its options and copy its code.

When to use it

Use a smooth filled trend for ordered values. The monotone curve adds no new observations; the fill ends at zero.

Chart API · Area spline

Expand a property to learn when to use it, see its public type, and find examples where applicable.

Data

The property data.type for this family is areaspline.

The X axis can represent categories, numbers or dates. Use UTC milliseconds for dates and null for a missing value. The gap breaks the fill.

Appearance

Customize presentation while keeping series and point identities stable.

Family options

Use overlapping areas to compare series, stacking to see the total, or 100% stacking to compare proportions. For positive values, percent stacking uses a 0–100 scale.

Axes and grid

Data types and domains determine the scale. Use options.axes to change its presentation.

Legend

Tooltip

Customize the tooltip with code →

Interaction and state

Identify the selection and hidden series by ID.

Animation

Complete options and events reference

Explore the data

Select an observation with the pointer or enter the chart with Tab. Arrow keys navigate the data; Home and End move to the endpoints. Enter or Space selects, and Escape closes the detail.

The data table retains original values, including missing values and hidden series. A repeated label does not merge separate categories. Manual screen reader review remains pending.

Accessibility guide

Example data

Copy the current input object with its original identifiers and values.