X Enterprises
Card

CardChartRevenue

Revenue card with a configurable grouped bar chart for period comparisons.

CardChartRevenue

Revenue card that pairs a summary value with a larger grouped bar chart for period comparisons.

Component

<XACardChartRevenue />

Revenue card containing a grouped bar chart with configurable axes and legend.

<XACardChartRevenue
  title="Monthly Revenue"
  value="$1.2M YTD"
  :data="revenueData"
  :categories="{
    desktop: { name: 'Desktop', color: '#3b82f6' },
    mobile: { name: 'Mobile', color: '#10b981' },
  }"
  :height="200"
/>

Props

PropTypeDefaultDescription
titlestring''Card title.
valuestring''Summary value shown under the title.
dataRevenueDataItem[]Required. Bar chart data ({ month, desktop, mobile, ... }).
categoriesRevenueCategoriesRequired. Category name/color map.
heightnumber200Chart height in px.
yAxisstring[]['desktop', 'mobile']Data keys for the Y axis.
groupPaddingnumber0Padding between bar groups.
barPaddingnumber0.2Padding between bars.
radiusnumber4Bar corner radius.
yNumTicksnumber4Y-axis tick count.
legendPosition'top' | 'bottom' | 'left' | 'right''top'Legend placement.
hideLegendbooleantrueHide the legend.
yGridLinebooleantrueShow horizontal grid lines.

AI Context

component: XACardChartRevenue
package: "@xenterprises/nuxt-x-app"
use-when: Displaying revenue trends with a larger bar chart area for bar-based period comparisons. Requires a data array and a categories map keyed by data field name.
Copyright © 2026