XLQP Gen1
ElementsData & charts

AddStatCard

Adds a compact statistic card with a value and supporting description.

AddStatCard

What it does

Adds a compact statistic card with a value and supporting description.

When to use it

Use it for one important number that does not need a full chart.

ElementFunction:AddStatCard(StatConfig)

Metrics:AddStatCard({
    Name = "Players",
    Value = tostring(#game:GetService("Players"):GetPlayers()),
    Description = "Players online"
})

Behavior and return value

Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.

Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.