Skip to content

area

Input Stack:
expr: TimeSeriesExpr
Output Stack:
StyleExpr

Change the line style to be an area plot. In this mode, the line will be filled from the data points to zero on the Y-axis, creating a solid area. For positive values, the area fills down to zero; for negative values, the area fills up to zero. This visualization is useful for showing volume, cumulative values, or when you want to emphasize the magnitude of the data.

Note

Multiple Series Behavior: When multiple time series are rendered as areas, their filled regions will overlap each other. To see cumulative contributions where each series builds on top of the previous ones, use :stack instead.

Parameters

  • expr: A time series expression to render as an area plot

Examples

Converting a line plot to an area plot:

BeforeAfter
name,sps,:eq,
:sum
name,sps,:eq,
:sum,
:area
  • :line - Default line style (converts area back to line)
  • :stack - Stack multiple areas on top of each other
  • :vspan - Show vertical spans for events or conditions
  • :alpha - Control transparency of area fills

See Also

See the line style examples page for more information on available line styles and their use cases.