Chart Columns

Render number arrays as inline line/area or bar charts — no extra chart library required.

Line / area chart

Set type: "lineAreaChart". Cell values must be number arrays — good for trends over time.

TypeScript
{
accessor: "monthlySales",
label: "Sales (12mo)",
type: "lineAreaChart",
width: 150,
align: "center",
}

Bar chart

Set type: "barChart" for discrete comparisons (quarters, weeks, categories).

TypeScript
{
accessor: "quarterlyRevenue",
label: "Quarterly",
type: "barChart",
width: 140,
align: "center",
}

Customize with chartOptions

Scale, size, and colors via chartOptions.

TypeScript
{
accessor: "cpuHistory",
label: "CPU",
type: "lineAreaChart",
width: 150,
chartOptions: {
min: 0,
max: 100,
color: "#3b82f6",
height: 35,
},
}

Copy and paste

Copy produces comma-separated values (e.g. 10, 15, 12). Paste parses that format back into a number array. Empty cells clear to [].

Example

Select a chart cell and copy (Ctrl/⌘+C). Use Code or StackBlitz for the full example.

Props

Chart Column Configuration

PropertyRequiredDescriptionExample
ColumnDef.type
Optional
Use "lineAreaChart" or "barChart". The cell value must be an array of numbers.
Options:
lineAreaChart
barChart
ColumnDef.chartOptions
Optional
Appearance and scaling options for chart columns.

ChartOptions

ChartOptions

PropertyRequiredDescriptionExample
min
number
Optional
Custom minimum value for chart scaling. If not provided, the minimum data value is used.
max
number
Optional
Custom maximum value for chart scaling. If not provided, the maximum data value is used.
width
number
Optional
Custom chart width in pixels. Default is 100.
height
number
Optional
Custom chart height in pixels. Default is 30.
color
string
Optional
Custom chart color (CSS color value). Overrides the theme color.
fillColor
string
Optional
Custom fill color for area charts (CSS color value). Only applies to lineAreaChart type. Overrides the theme fill color.
fillOpacity
number
Optional
Fill opacity for area charts. Value between 0 and 1. Default is 0.2. Only applies to lineAreaChart type.
strokeWidth
number
Optional
Line stroke width in pixels. Default is 2. Only applies to lineAreaChart type.
gap
number
Optional
Gap between bars in pixels. Default is 2. Only applies to barChart type.