Overview
TheBigValue component displays a large, prominent metric with an optional title, comparison value, and sparkline chart. It’s ideal for showcasing key performance indicators (KPIs) in dashboards.
Basic Usage
With Comparison
With Sparkline
Props
Data Selection
Query result, object, or array containing the values to display.
Column name for the primary value to display.
Column name for the comparison value (shown below the main value).
Display Options
Title displayed above the value. Defaults to the column name if not specified.
Label for the comparison value. Defaults to the comparison column name.
Show comparison as a delta with up/down arrows. When false, shows raw value.
Formatting
Format string for the main value. Examples:
"usd", "usd0", "pct1", "#,##0".Format string for the comparison value. Inherits from
fmt if not specified.Sparkline
Column name for the sparkline x-axis (typically a date column).
Type of sparkline chart to display.
Color for the sparkline. Accepts color names, hex codes, or theme colors.
Format string for sparkline tooltip values.
Format string for sparkline tooltip dates.
Show y-axis scale on sparkline.
Group name to connect multiple sparklines for synchronized tooltips.
Delta Styling
Reverse color coding for deltas (green for negative, red for positive).
Minimum value for neutral range (values between neutralMin and neutralMax show as neutral).
Maximum value for neutral range.
Sizing
Maximum width of the component. Accepts CSS width values.
Minimum width of the component. Accepts CSS width values.
Links
URL to navigate to when clicking the value.
Description text shown in an info tooltip next to the title.
Custom Classes
Custom CSS class for the title element.
Custom CSS class for the value element.
Custom CSS class for the comparison element.
Error Handling
How to handle empty datasets.
Custom message to display when dataset is empty.
Examples
Simple KPI
With Delta Comparison
With Sparkline
Multiple BigValues
With Non-Delta Comparison
With Linked Value
Notes
- The component displays inline-block, allowing multiple BigValues to appear side by side
- When
comparisonDeltais true, the comparison shows with colored arrows (up/down) and appropriate positive/negative coloring - Use
downIsGood={true}for metrics where decreases are positive (e.g., cost, error rate) - Sparklines are automatically sized to fit within the component