BPT

Treemap Chart

BptChartTreeMap

Treemap — packs N rectangles into the plot area, each rectangle's area proportional to its value. Uses the squarified-layout algorithm (Bruls, Huijsen, van Wijk 2000) to keep every rectangle as close to a square as possible — long thin slivers are minimised. Built on the BPT chart foundation — palette-aware, drag-to-rotate in 3D mode, scroll-zoom, and keyboard-accessible via a hidden data table.

Treemap Chart Parameters
Current Configuration
📋
<BptChartTreeMap Data="@Data"
                 Width="640"
                 Height="440"
                 Title="Revenue by department"
                 OnElementClick="HandleClick" />

@code {
private readonly IReadOnlyList<BptChartTreeMapNode> Data = new BptChartTreeMapNode[]
{
    new("Sales", 4200), new("Engineering", 3800),
    new("Marketing", 1900), new("Support", 1600),
    // …
};

private void HandleClick(BptChartElementEvent e) {
    // Click handler — fires regardless of TooltipMode.
}
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.