Skip to content

Chart gallery

Every chart py-beacon draws, rendered from the sample dataset (beacon.testing.dataset). The images are generated when the docs are built, so they show what the current code draws. Each chart starts as its image in the theme matching your light or dark setting. Its toggles switch to the live version, where moving the pointer over it shows the popup, and to the other themes: for pages that are white, GitHub's dark, or let the page show through. Charts explains how to draw them.

Results

Index level

The index level, rebased to 100, against an optional benchmark.

Index level Index level

Weights

Constituent weights at a rebalance, with the weight cap marked.

Weights Weights

Constituents

The index among its constituents, each rebased to 100.

Constituents Constituents

Performance

Growth of 100, with a drawdown panel on the same dates.

Performance Performance

Annual returns

Calendar-year returns, green for gains and red for losses.

Annual returns Annual returns

Contributions

Each constituent's contribution to return, with the cap and cost drags in the notes.

Contributions Contributions

Compare

Several results on one axis, rebased to 100 on the dates they share.

Compare Compare

Exposures

Active weights against the target, coloured by sign.

Exposures Exposures

Frontier

An efficient frontier, its minimum-variance and tangency points, and the capital market line.

Frontier Frontier

Correlation

The correlation matrix as a heatmap, shaded from 0.2 to 1.0.

Correlation Correlation

Chart classes

Line

One or more series over dates, the first in the accent colour, with a reference line, a marked period and the last value labelled.

Line Line

Area

Parts of a whole stacked, here four holdings' shares.

Area Area

Column

Values by category, upright, coloured by sign.

Column Column

Bar

Values by category, across, with value labels and a cap.

Bar Bar

Combo

Columns on the left axis and a line on the right, on one calendar.

Combo Combo

Scatter

One measure against another, with a fitted line and its slope and fit.

Scatter Scatter

Histogram

Counts in equal bins, with the normal curve and a marked VaR.

Histogram Histogram

Heatmap

A table of values as colour, each value written in its cell.

Heatmap Heatmap

Grid

Several charts under one heading: a tall chart beside two.

Grid Grid

Table

A DataFrame as a table, with column groups, row groups and signed returns; live, its columns sort.

Table Table