PerspectiveExamples

Sunburst - Row And Split By Category Color 2 — Grouped sunbursts with 2-level hierarchy. Hierarchies are Category and Sub-category. Size is Sales. Each sunburst is a different region, and each category is colored.

Sunburst chart of Sales and Category, grouped by Category and Sub-Category, split by Region.

Sunburst - Row And Split By Category Color 2 — Grouped sunbursts with 2-level hierarchy. Hierarchies are Category and Sub-category. Size is Sales. Each sunburst is a different region, and each category is colored.: Sunburst chart of Sales and Category, grouped by Category and Sub-Category, split by Region.

Data

Programmatic variations on the Superstore retail sales dataset, showing the flexibility of Perspective's configuration: the same table re-queried as data grids, pivot tables and charts by changing only the viewer's JSON config.

Loaded from /data/superstore.lz4.arrow as arrow into the perspective-server engine.

Configuration

This example is a saved <perspective-viewer> workspace. Pass this JSON to viewer.restoreWorkspace() to reproduce it over the same table:

{
    "layout": {
        "type": "tab-layout",
        "tabs": [
            "p0"
        ],
        "selected": 0
    },
    "panels": {
        "p0": {
            "table": "",
            "title": "Sunburst - Row And Split By Category Color 2",
            "plugin": "Sunburst",
            "group_by": [
                "Category",
                "Sub-Category"
            ],
            "split_by": [
                "Region"
            ],
            "columns": [
                "Sales",
                "Category"
            ],
            "aggregates": {
                "Category": "dominant"
            },
            "theme": null
        }
    },
    "active": "p0"
}

About Perspective

Perspective is an open-source, WebAssembly-powered data grid, pivot table and charting component for large, real-time and streaming datasets — in the browser, Python, Jupyter, Node.js and Rust.

Documentation