X Enterprises
Card

CardStatsSummary

Summary card with an area chart and comparison value.

CardStatsSummary

Summary card combining an area chart with a prominent metric value and a comparison note.

Component

<XACardStatsSummary />

Summary card combining an area chart with a prominent metric value and a comparison note.

<XACardStatsSummary
  title="Total Revenue"
  :value="124800"
  :chart-data="summaryData"
  :categories="{ revenue: { name: 'Revenue', color: '#3b82f6' } }"
  comparison-label="vs Last Months"
  comparison-value="+14.2%"
/>

Props

PropTypeDefaultDescription
titlestringRequired. Card title/label.
valuestring | numberRequired. Featured metric value.
chartDataChartDataItem[]Required. Area chart data ({ date, ...values }).
categoriesRecord<string, { name: string; color: string }>Required. Chart categories.
heightnumber90Chart height in px.
showLegendbooleanfalseShow the chart legend.
curveTypeanyCurveType.LinearCurve interpolation.
comparisonLabelstring'vs Last Months'Comparison label text.
comparisonValuestringundefinedComparison value (shown in success color).

AI Context

component: XACardStatsSummary
package: "@xenterprises/nuxt-x-app"
use-when: Displaying a metric-first card layout with an area chart and comparison note. chartData must be ChartDataItem[] with a date field and one field per category key.
Copyright © 2026