Show Stats Display
Show_Stats_Display renders KPI summary cards inside chat. Use it for metric rollups and compact executive summaries, not for trends, grouped comparisons, or leaderboards.
When To Use
Use
Show_Stats_Displayfor short KPI grids, headline metrics, and scorecard-style summaries.Use
Show_Chartwhen the output is primarily atrend,comparison, orleaderboard.Use the
govtribe-chart-graphicsshell skill when the output needs bespoke layout, chart annotations, or presentation polish.
Contract
Required top-level keys:
idstats
Optional top-level keys:
titledescriptionlocale
Stat Rules
Each item in
statsmust be an object with:keylabelvalue
Optional per-stat keys:
formatdiffsparkline
Unsupported keys are rejected instead of ignored.
value
valuevaluemay be either:plain text
a numeric JSON value
If
format.kindisnumber,currency, orpercent,valuemust be a numeric JSON value, not a quoted string like"42500000"or"37%".
format
formatformatis an optional strict object, not a shorthand string and not an ad hoc bag of keys.Use
"compact": truefor large money or count values so KPI tiles stay compact, for example$2.4B,$844.4M, or1.2K.Supported shape:
Supported
kindvalues:textnumbercurrencypercent
Supported
basisvalues for percent formatting:fractionunit
diff
diffdiffis an optional strict object.Supported shape:
The widget applies the sign and percent symbol automatically. Send
12.4or-0.8, not"+12.4%".
sparkline
sparklinesparklineis an optional strict object.Supported shape:
datamust contain at least 2 numeric points.
Canonical Example
Surface Selection
Use
Show_Stats_Displaywhen the takeaway is a small set of headline metrics.Use
Show_Chartwhen the user needs a chart grammar such as a trend, comparison, or leaderboard.Use
govtribe-chart-graphicswhen the result needs bespoke graphics, multi-panel layout, or presentation-ready styling.
Last updated
Was this helpful?
