---
title: "Difference chart generator"
description: "Highlight variances between two time series with shaded regions indicating positive or negative gaps. Trendalyzer processes all data locally."
---

> HTML: https://trendalyzer.app/chart/difference/
> Index: https://trendalyzer.app/llms.txt

# Difference chart generator

Highlight where two ordered series diverge and which one is larger.

Maturity: beta

A difference chart for explain variance.

Data shape: Period and two numeric series columns.

## Columns

- `period` (text, required)
- `a` (number, required)
- `b` (number, required)

## Sample data

| period | a | b |
| --- | --- | --- |
| Jan | 24 | 20 |
| Feb | 29 | 31 |
| Mar | 27 | 24 |

Exports: SVG, PNG, and Excel data (data). PowerPoint export is currently unavailable pending dependency review.

## Visual Encoding & Comparative Anatomy

A difference chart (or gap area chart) visualizes the exact distance between two related, continuous time series. By filling the intersecting regions with alternating colors based on which line is higher, it explicitly reveals periods of surplus, deficit, and variance over time.

## FAQ



### Why is a difference chart visually powerful?

The colored fill between lines immediately draws attention to periods of surplus versus deficit without requiring mental subtraction.
