ElementsData & charts
AddRevenueCard
Adds an animated metric card with trends, prefixes, suffixes, and supporting mini-statistics.
AddRevenueCard
What it does
Adds an animated metric card with trends, prefixes, suffixes, and supporting mini-statistics.
When to use it
Use it for dashboard KPIs such as revenue, usage, balances, or growth.
ElementFunction:AddRevenueCard(RevenueConfig)
local RevenueCard = Metrics:AddRevenueCard({
Name = "Revenue",
Value = 30858,
Prefix = "$",
Change = "+10.4%",
Color = Color3.fromRGB(20, 210, 145),
Duration = 0.75,
MiniStats = {
{Name = "Health", Value = "100 HP", Change = "+∞", Status = "Good"},
{Name = "FPS", Value = 185, Change = "+29", Status = "Good"},
{Name = "Speed", Value = "83 WS", Change = "+1", Status = "Medium"},
{Name = "Players", Value = 14, Change = "0", Status = "Bad"}
}
})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.