Skip to content

BigNumber

A single number or change can often be the most important thing in a report. The BigNumberblock allows you to present KPIs, changes, and statistics in a friendly way to your viewers. You can optionally set intent, and pass in numbers or text.

Simple BigNumber

import datapane as dp

report = dp.Report(
    dp.BigNumber(heading="Simple Statistic", value=100),
)

report.save(path="simple-bignumber.html")

BigNumber with change indicators

import datapane as dp

report = dp.Report(
    dp.Group(
        dp.BigNumber(
            heading="Percentage points",
            value="84%",
            change="2%",
            is_upward_change=True,
        ),
        dp.BigNumber(
            heading="Percentage points",
            value="84%",
            change="2%",
            is_upward_change=False,
        ),
        dp.BigNumber(
            heading="Points",
            value="1234",
            change="200",
            is_upward_change=True,
        ),
        dp.BigNumber(
            heading="Points",
            value="1234",
            change="200",
            is_upward_change=False,
        ),
        columns=2,
    )
)

report.save(path="bignumber-change.html")