Skip to content

Time Series Charts

Specialized visualizations for temporal sequences, financial data, and multi-period comparisons. These charts handle the unique challenges of time-based data: showing change, comparing periods, and revealing patterns that emerge only when data unfolds over time.

Candlestick

Display price movements with open, high, low, and close values for each time period. Candlestick charts encode direction (up or down) through color and show price range through the wick and body. Traders rely on candlestick patterns to identify market sentiment, reversals, and continuation signals.

Configuration

ParameterTypeDefaultDescription
typestring-'candlestick'
dateFieldstring'date'Date/time field
openFieldstring'open'Opening price field
highFieldstring'high'High price field
lowFieldstring'low'Low price field
closeFieldstring'close'Closing price field
upColorstring'#26a69a'Color for up candles
downColorstring'#ef5350'Color for down candles
wickWidthnumber1Width of wick lines

Basic Example

View Source
type: candlestick
engine: d3
title: Stock Price
dateField: date
openField: open
highField: high
lowField: low
closeField: close
width: 600
height: 400
data:
  source: '[{"date": "2024-01-01", "open": 100, "high": 105, "low": 98, "close": 103}, {"date": "2024-01-02", "open": 103, "high": 108, "low": 102, "close": 106}, {"date": "2024-01-03", "open": 106, "high": 110, "low": 104, "close": 105}, {"date": "2024-01-04", "open": 105, "high": 107, "low": 100, "close": 102}, {"date": "2024-01-05", "open": 102, "high": 109, "low": 101, "close": 108}, {"date": "2024-01-06", "open": 108, "high": 115, "low": 107, "close": 113}, {"date": "2024-01-07", "open": 113, "high": 118, "low": 111, "close": 116}]'

Custom Colors

View Source
type: candlestick
engine: d3
title: BTC/USD
dateField: date
openField: open
highField: high
lowField: low
closeField: close
upColor: "#00c853"
downColor: "#ff1744"
width: 600
height: 400
data:
  source: '[{"date": "2024-01-01", "open": 42000, "high": 43500, "low": 41500, "close": 43200}, {"date": "2024-01-02", "open": 43200, "high": 44000, "low": 42800, "close": 42500}, {"date": "2024-01-03", "open": 42500, "high": 43800, "low": 42000, "close": 43600}, {"date": "2024-01-04", "open": 43600, "high": 45000, "low": 43200, "close": 44800}, {"date": "2024-01-05", "open": 44800, "high": 46200, "low": 44500, "close": 45900}]'

Slope Chart

Compare values between exactly two time periods with lines connecting each entity's before and after positions. Slope charts make it immediately clear which items improved, declined, or stayed flat. The angle and direction of each line tells the story: steep upward lines show dramatic gains, crossing lines reveal rank changes.

Configuration

ParameterTypeDefaultDescription
typestring-'slope'
xstringrequiredCategory/item field
ystringrequiredValue field
timestringrequiredTime period field
lineWidthnumber2Connection line width
dotRadiusnumber4Point radius
leftLabelstring'Before'Left axis label
rightLabelstring'After'Right axis label
colorSchemestring'schemeCategory10'Color palette

Basic Example

View Source
type: slope
engine: d3
x: country
y: value
time: year
title: GDP Change 2020-2023
leftLabel: "2020"
rightLabel: "2023"
width: 500
height: 400
data:
  source: '[{"country": "USA", "value": 21000, "year": "2020"}, {"country": "USA", "value": 25500, "year": "2023"}, {"country": "China", "value": 14700, "year": "2020"}, {"country": "China", "value": 17800, "year": "2023"}, {"country": "Japan", "value": 5000, "year": "2020"}, {"country": "Japan", "value": 4200, "year": "2023"}, {"country": "Germany", "value": 3800, "year": "2020"}, {"country": "Germany", "value": 4400, "year": "2023"}]'

Horizon Chart

Compress time series into layered bands that fold extreme values back onto the baseline. Horizon charts pack multiple series into minimal vertical space while preserving the ability to read fine details. Color intensity encodes magnitude: darker shades indicate values further from zero, making it easy to spot anomalies across many parallel series.

Configuration

ParameterTypeDefaultDescription
typestring-'horizon'
xstringrequiredTime field
ystringrequiredValue field
bandsnumber3Number of color bands
modestring'offset''offset' or 'mirror'
colorSchemestring'schemeBlues'Color palette

Basic Example

View Source
type: horizon
engine: d3
x: date
y: temperature
title: Temperature Anomaly
bands: 4
width: 600
height: 200
data:
  source: '[{"date": "2024-01", "temperature": 2.1}, {"date": "2024-02", "temperature": 1.8}, {"date": "2024-03", "temperature": 0.5}, {"date": "2024-04", "temperature": -0.3}, {"date": "2024-05", "temperature": -1.2}, {"date": "2024-06", "temperature": 0.8}, {"date": "2024-07", "temperature": 2.5}, {"date": "2024-08", "temperature": 3.1}, {"date": "2024-09", "temperature": 1.9}, {"date": "2024-10", "temperature": 0.2}, {"date": "2024-11", "temperature": -0.8}, {"date": "2024-12", "temperature": 1.4}]'

Parallel Coordinates

Plot each data record as a line crossing multiple vertical axes, one per variable. Parallel coordinates reveal relationships between many dimensions simultaneously: clusters appear as bundles of parallel lines, outliers as lines that diverge from the pack, and correlations as consistent patterns between adjacent axes.

Configuration

ParameterTypeDefaultDescription
typestring-'parallel-coords'
dimensionsarrayrequiredList of numeric fields
colorstring-Field for line coloring
lineOpacitynumber0.5Line transparency
colorSchemestring'schemeCategory10'Color palette

Basic Example

View Source
type: parallel-coords
engine: d3
title: Car Attributes
color: origin
width: 650
height: 400
dimensions:
  - mpg
  - cylinders
  - horsepower
  - weight
data:
  source: '[{"mpg": 32, "cylinders": 4, "horsepower": 90, "weight": 2200, "origin": "Japan"}, {"mpg": 28, "cylinders": 4, "horsepower": 110, "weight": 2500, "origin": "Europe"}, {"mpg": 18, "cylinders": 8, "horsepower": 200, "weight": 3800, "origin": "USA"}, {"mpg": 22, "cylinders": 6, "horsepower": 150, "weight": 3200, "origin": "USA"}, {"mpg": 35, "cylinders": 4, "horsepower": 85, "weight": 2000, "origin": "Japan"}, {"mpg": 25, "cylinders": 6, "horsepower": 130, "weight": 2900, "origin": "Europe"}]'

Type Aliases

PrimaryAliases
candlestickohlc, stock, lines/candlestick
slopeslopegraph, slope-graph, lines/slope
horizonlines/horizon
parallel-coordsparallel-coordinates, lines/parallel-coords

Released under the MIT License. Built by Boundary Lab.