# Key figure (KpiStat) · Booki

> One figure against the period before, with a sparkline. You say whether up is good; the agent reads the value, the change and whether it is favourable.

Source: https://booki.dev/docs/kpi-stat

Reports and charts

# Key figure

`KpiStat`

One figure against the period before, with a sparkline. You say whether up is good; the agent reads the value, the change and whether it is favourable.

The person sees

Loading preview…

Bridge demo

```
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
  "@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"
```

## Try the bridge

Open this page in a browser and run the example in the console with a fresh preview. Read the current ref from the snapshot before acting.

```javascript
const { agent } = window
const entry = agent.snapshot().filter(
  (entry) => !entry.offPage && entry.component === "kpi-stat",
)[0]
const { valueMinor, previousMinor, deltaPct, favourable } = entry
console.log({ valueMinor, previousMinor, deltaPct, favourable })
```

October is 48650000 minor units (486,500.00), up 7.6% from 45200000 minor units in September. favourable is true.

Import from `@booki-aui/react`. For Booki's default styling, add `import "@booki-aui/styles"`.
