X Enterprises
Card

CardChartRevenueLine

Revenue card with a configurable line chart for current vs last-year comparisons.

CardChartRevenueLine

Revenue card with a line chart designed for current-year vs last-year comparisons.

Component

<XACardChartRevenueLine />

Revenue card with a line chart — designed for current-year vs last-year comparisons.

<XACardChartRevenueLine
  title="Revenue Trend"
  value="$84,200"
  :data="trendData"
  :categories="{
    current: { name: 'This Year', color: '#3b82f6' },
    last_year: { name: 'Last Year', color: '#d1d5db' },
  }"
/>

Props

PropTypeDefaultDescription
titlestring''Card title.
valuestring''Summary value.
dataRevenueLineDataItem[]Required. Line data ({ date, current, last_year }).
categoriesRevenueLineCategoriesRequired. Category map.
heightnumber180Chart height in px.
xNumTicksnumber4X-axis ticks.
yNumTicksnumber3.5Y-axis ticks.
curveType'linear' | 'natural' | 'monotone' | 'step''linear'Curve interpolation.
legendPosition'top' | 'bottom' | 'left' | 'right''top'Legend placement.
hideLegendbooleantrueHide the legend.
hideXAxisbooleantrueHide X-axis labels.
yGridLinebooleantrueShow horizontal grid lines.

AI Context

component: XACardChartRevenueLine
package: "@xenterprises/nuxt-x-app"
use-when: Displaying current vs last-year revenue trends with a line chart. Data shape is { date, current, last_year }; requires a data array and a categories map keyed by data field name.
Copyright © 2026