Area

Read magnitude with a transparent fill to zero.

Import
@neural-charts/web/cartesian
Data
area

Live demo

Container width

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

Animation
240ms
Gaps in the fillMissing intervals break both outline and fill.002020404060608080MonMonTueTueWedWedThuThuFriFriSatSatSunSunDayDayVisits

Gaps in the fill

Missing intervals break both outline and fill.

Original data
SeriesCategory XidxyVisible
This weekMonday-0day-029Yes
This weekTueday-1day-135Yes
This weekWedday-2day-2Missing measurementYes
This weekThuday-3day-346Yes
This weekFriday-4day-4Missing measurementYes
This weekSatday-5day-557Yes
This weekSunday-6day-664Yes
Previous weekMonday-0day-020Yes
Previous weekTueday-1day-125Yes
Previous weekWedday-2day-2Missing measurementYes
Previous weekThuday-3day-330Yes
Previous weekFriday-4day-4Missing measurementYes
Previous weekSatday-5day-534Yes
Previous weekSunday-6day-644Yes

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. CSV
  2. PNG
  3. SVG

Interactive examples

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

When to use it

Use areas when the magnitude and trend matter. Overlapping series are not stacked. The value axis includes zero by default; an explicit domain clips the fill.

Chart API · Area

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 area.

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.