Reports · Components
ReportResult
A report's result: one measure charted at a time (a measure switch when there are several), or the whole result as a table with formatted columns (money, "Jan 2025" buckets). `full` is a report's page: a Chart/Table switch, headline figures for the shown measure (total, average, peak) and a tall chart with a value axis.Public export
typescript
import { ReportResult } from '@happyvertical/smrt-reports/svelte';- Import path
@happyvertical/smrt-reports/svelte- Props
- 8
- Props described
- 5 of 8
- Bindable state
- 0
- Callback events
- 0
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
resultRuntimeReportResultYesNot describedvariant'compact' | 'full'No`compact` (default) for a preview card, `full` for a report's page.specRuntimeReportSpecNoThe report's spec, so figures know which measures add up.view'chart' | 'table'NoChart or table, bindable so the page's actions can follow it.localestringNoNot describedcurrencystringNoNot describedformatCell(value: unknown, column: Column, row: RuntimeReportResult['rows'][number]) => string | undefinedNoHost-owned labels/formatting; raw values remain available for links.cellHref(column: Column, row: RuntimeReportResult['rows'][number]) => string | undefinedNoOptional same-origin record destination, used only in the table.Bindable state
This component has no bindable public state.
Callback events
This component declares no callback event props.