Area Chart

An area chart is a statistical chart that reflects numerical changes as an ordered variable changes, similar in principle to a line chart. The distinctive feature of an area chart is that the area between the line and the independent variable axis is filled with color.

Use Cases

  • To show trend changes in data under a continuous independent variable while also observing changes in total data volume
  • For example, displacement = velocity × time: s = v × t. If the x-axis is time t and the y-axis is velocity v at each moment, using an area chart allows you not only to observe the trend of velocity over time but also to perceive the change in displacement distance based on the size of the area

Visual Examples

Global Electric Vehicle Sales Trend

China Power Structure Change Trend, Custom Colors

Global Cloud Computing Market Size Trend, Custom Palette

Options

Configuration Options

PropertyTypeRequiredDescription
typestringrequiredValue must be "area".
dataObject[]requiredChart data.
data.timestring | numberrequiredTime series name.
data.valuenumberrequiredData value.
data.groupstringoptionalGroup name. Required when stacking is enabled.
stackbooleanoptionalWhether to enable stacking.
titlestringoptionalChart title.
axisXTitlestringoptionalX-axis title.
axisYTitlestringoptionalY-axis title.
theme'default' | 'dark' | 'academy'optionalChart theme, default is "default".
styleObjectoptionalChart style.
style.backgroundColorstringoptionalMust be a valid color value.
style.palettestring[]optionalMust be an array of valid color values.
style.lineWidthnumberoptionalStroke width, value must be greater than or equal to 0.