Skip to content

Trends and Time

Use a line to show change over time, such as quarterly sales. Keep dates ordered and choose an area chart when the filled magnitude adds meaning. Try changing the chart type while retaining the same series.

Interactive example

Trend and area charts

Trends across ordered categories.

The example loads when visible.

TypeBest forRequired data and constraints
lineTrends across ordered categories.Category, value, and series.
smoothLineVisually continuous trends.Same channels as line; smoothing changes geometry, not data.
steppedLineState or price changes that hold until the next category.Category, value, and series.
smallMultiplesComparing many trends without overlapping lines.Category and value; up to 12 visible panels, with fewer in smaller containers. Omitted panels remain in canonical data and CSV.
annotatedTimeSeriesTrends with emphasized analytical points.Category, value, and series; date-like categories are recommended.
areaTrend magnitude with filled areas.Category, value, and series.
steppedAreaStepwise magnitude changes.Category, value, and series.
stackedAreaTotal trend plus series contribution.Category, value, and series.
normalizedAreaPercentage composition over an ordered axis.Category, value, and series; normalizes to 100%.
rangeAreaLow/high bands over categories.Explicit low/high groups with shared or matched parallel channels.
confidenceBandUncertainty envelopes around trends.Explicit lower/upper groups through low and high, with shared or matched parallel channels.

Choose a line, then an area view. Notice that category order remains important. For a ready chart:

await chart.update({ chartType: 'line' });

See time and category axes and navigation.