X Enterprises
Chart

ChartArea

Area chart with configurable curve, axes, legend, and grid lines.

ChartArea

Lightweight wrapper around the Nuxt UI area chart primitive. Shares the same prop surface as XAChartLine but renders filled area shapes beneath the line. Forwards unknown attributes to the underlying primitive via v-bind="$attrs".

Components

<XAChartArea />

Area chart with the same prop surface as XAChartLine, minus lineWidth.

<XAChartArea
  :data="timeSeriesData"
  :categories="{ signups: { name: 'Signups', color: '#6366f1' } }"
  :height="200"
  hide-legend
/>

Props

PropTypeDefaultDescription
dataany[]Required. Chart data array.
categoriesRecord<string, { name: string; color: string }>Required. Series definitions.
heightnumber300Chart height in px.
xFormatter(tick: number, i?: number) => stringCustom X-axis tick formatter.
yFormatter(tick: number, i?: number) => stringCustom Y-axis tick formatter.
curveTypeCurveTypeCurveType.MonotoneXCurve interpolation.
hideLegendbooleanfalseHide the legend.
hideTooltipbooleanfalseHide the hover tooltip.
legendPositionLegendPositionLegendPosition.TopRightLegend placement.
yGridLinebooleantrueShow horizontal grid lines.
xGridLinebooleanfalseShow vertical grid lines.
hideXAxisbooleanfalseHide the X axis.
hideYAxisbooleanfalseHide the Y axis.
xLabelstringX-axis label.
yLabelstringY-axis label.

AI Context

component: XAChartArea
package: "@xenterprises/nuxt-x-app"
auto-import: true
prefix: XA
use-when: Rendering a standalone area/fill chart for time-series data; prefer XACardChart or XACardStatsSummary when the chart should appear inside a card container
patterns:
  - categories is Record<key, { name, color }> where each key matches a data field.
  - Use xFormatter/yFormatter to map numeric tick indexes to data labels.
Copyright © 2026