Turn a vague description of a chart, a part of a chart, or a chart behavior into the precise term. Then name the Bklit component or prop that provides it, so the user knows what to ask for.
Quick Start
The user describes a concept loosely. Return the matching term in this format:
**Crosshair** — A guide line that follows the pointer across the plot so you can read the exact x (and sometimes y) position.
Bklit: `ChartTooltip showCrosshair` (on by default for line and area); `ChartCrosshair` adds a free y line with a value pill.
If several terms could fit, list the best match first. Then give 1–2 alternates, each with a one-line note on how it differs.
Instructions
- Read for intent, not keywords. People describe what they see ("the dots that hug each other", "the faint lines behind the chart", "the box that follows my mouse"), not the technical name. Map the description to the glossary below.
- Quote the glossary verbatim. Its definitions and
Bklit:lines are authoritative. Use them as written; don't paraphrase. - Always give the Bklit mapping. Every answer ends with the
Bklit:line from the entry. If the entry says No Bklit equivalent, say that plainly and give the nearest composition the entry lists. Never invent a prop. - Translate other libraries' words. If the user names a Recharts, Nivo,
TanStack Charts or d3 term (
ResponsiveContainer,stackId,groupMode,useMesh,elementType,d3.stack,scaleBand…), look it up in references/library-crosswalk.md. Check its False friends list before answering. The same word often means different things across libraries (range,layout,barGap,markers,Cell,padding). - Disambiguate close terms. When two terms compete, contrast them so the user can pick. Common pairs: Crosshair vs Tooltip, Reference area vs Range band, Trend line vs Projection, Grouped vs Stacked, Donut vs Ring vs Radial bar vs Gauge, Grid vs Background, Marker (event pin) vs Point marker (dot), Data label vs Tooltip.
- When nothing matches exactly, name the closest term and say it is an approximation. Or describe the concept in the glossary's words, e.g. "that's a range band drawn with a pattern fill".
- Stay within this glossary. If a term isn't here, say so rather than inventing one. You may still explain the concept using these words.
- Translate build requests before building. When a request to build a
chart uses another library's terms ("a Nivo-style stream chart with
enableSlices"), write a one-line translation first, for example "groupMode="stacked"→BarChart stacked;enableSlices="x"→ the defaultChartTooltip". Flag anything with no Bklit equivalent, then build with bklit-ui. - Keep it tight. A naming question wants a name, not an essay. Lead with the term and expand only if asked. If the user then wants it built, use the bklit-ui skill to install and compose it, and bklit-ui-design for how it looks (patterns, fades, bar shapes, theming).
The Bklit lines name the shipped registry source. After npx shadcn@latest add @bklit/<item>, the user's components/charts/* files are the contract. If
a prop here is missing from the installed file, trust the file.
Examples
Example 1: describing a behavior User: "What's it called when hovering the chart shows a vertical line and the values at that date?"
**Crosshair** — A guide line that follows the pointer across the plot so you can read the exact x (and sometimes y) position.
Bklit: `ChartTooltip showCrosshair` (on by default for line and area); `ChartCrosshair` adds a free y line with a value pill.
Often paired with:
- **Tooltip**: the floating panel with the values. The crosshair is only the line.
Example 2: describing a shape User: "Instead of bars I want a thin line with a circle on the end."
**Lollipop chart** — A thin stem from the baseline with a dot at the value; a lighter-ink alternative to bars.
Bklit: `BarLollipop` inside `BarChart` (vertical, non-stacked only). Negative values hang below zero.
Example 3: another library's word
User: "In Recharts I'd use stackId on my <Area>s. What's the Bklit version?"
**Stacked area** — Areas piled on top of each other so the top edge shows the running total.
Bklit: **No Bklit equivalent.** `Area` has no stack prop. Nearest: overlapping translucent `Area`s, or precompute cumulative values per row.
Example 4: two terms compete User: "The shaded strip that shows the normal range."
**Reference area** — A shaded rectangle at fixed values that marks a goal range or a time window.
Bklit: `ReferenceArea y1 y2` (value range) or `x1 x2` (time window).
Close alternate:
- **Range band**: if the strip's top and bottom change at every point (min/max, confidence). Bklit: `Band upperKey lowerKey`.
Glossary
Chart types: picking the right chart
- Line chart — Points joined by a line, usually over time; best for trends. Bklit:
LineChart+Line. - Area chart — A line with the space down to the baseline filled; trend plus magnitude. Bklit:
AreaChart+Area. - Step chart — A line that moves in flat stairs rather than slopes, for values that change in jumps (prices, plan tiers). Bklit:
curve={curveStep}onLine/Area(fromd3-shape). - Bar chart — One rectangle per category whose length is the value. Also called a column chart when vertical. Bklit:
BarChart+Bar. - Horizontal bar chart — Bars grow left to right, with categories down the y axis; good for long labels and rankings. Bklit:
BarChart orientation="horizontal"+BarYAxis. - Grouped bar chart — Several series' bars side by side within each category. Also called clustered bars. Bklit: several
<Bar dataKey>children (the default);Bar groupGapsets the gap. - Stacked bar chart — Series bars piled into one bar per category, so the top shows the total. Bklit:
BarChart stacked(+stackGap). - Histogram — Touching bars over value bins that show how often values occur. Bklit: pre-bin the data, then
BarChart barGap={0}+Bar lineCap="butt". - Lollipop chart — A thin stem from the baseline with a dot at the value; a lighter-ink alternative to bars. Bklit:
BarLollipopinsideBarChart(vertical, non-stacked only). Negative values hang below zero. - Segmented bar — A bar built from a stack of small squares or dots, like an LED meter. Also called pixel bars or squircle bars. Bklit:
BarSquares(+BarChart squareSnap, optionalBarColumnTrackghost track). - 3D bar — Bars drawn with an extruded front and side face. Also called isometric or glass bars. Bklit:
BarDepthBack→Bar perspective→BarDepthFront(from@bklit/bar-depth). - Combo chart — Different mark types (bars plus a line or area) sharing one x axis, often with two y axes. Also called a composed chart. Bklit:
ComposedChart+SeriesBar+Line/Area. - Scatter plot — A dot at each (x, y) pair, showing spread and clusters. Bklit:
ScatterChart+Scatter(the x axis is time). - Strip plot — Many dots per category, nudged sideways so they don't overlap. Also called a jitter plot; a beeswarm packs them precisely instead. Bklit:
ScatterChart jitter(seeded random offset, not a true beeswarm). - Candlestick chart — Open, high, low and close per period, drawn as a body and a wick. Also called OHLC. Bklit:
CandlestickChart+Candlestick. - Profit/loss line — One series that crosses zero, colored by sign (green above, red below). Bklit:
ProfitLossLine(@bklit/profit-loss-line). - Live line chart — A line that scrolls smoothly as new points stream in. Also called a real-time or streaming chart. Bklit:
LiveLineChart+LiveLine(window,paused). - Sparkline — A tiny chart the size of a word, with no axes or grid, for table cells and KPI cards. Bklit:
LineSparkline/AreaSparkline/BarSparkline, plususeSparklineHoverto read the hovered value. - Pie chart — A circle cut into slices sized by share of the whole. Bklit:
PieChart+PieSlice. - Donut chart — A pie with a hollow center, often with a total inside. Bklit:
PieChart innerRadius={…}+PieCenter. - Ring chart — Concentric progress arcs, one ring per metric, each filled toward its own goal. Also called concentric rings or activity rings. Bklit:
RingChart+Ring+RingCenter. - Radial bar chart — Bars bent around a circle, for a cycle such as hours of the day or months. Also called a circular bar or clock chart. Bklit:
RadialChart+RadialBar/RadialRingBar/RadialDotBar(alsoRadialLine,RadialArea). - Radar chart — Values on spokes around a circle, joined into a polygon to compare profiles. Also called spider or web chart. Bklit:
RadarChart+RadarGrid+RadarAxis+RadarLabels+RadarArea. - Gauge — One value on a partial arc against a scale, like a speedometer. Also called a dial or meter. Bklit:
Gauge(@bklit/gauge-chart);arcStyle,needle,zones,orientation="linear"for a bar meter. - Heatmap — A grid of cells colored by value. Bklit:
HeatmapChart+HeatmapCells. - Calendar heatmap — A heatmap laid out as days in week columns, like a contribution graph. Bklit:
HeatmapChartwith daily data (weekStartDay) +HeatmapLegend. - Funnel chart — Shrinking stages that show drop-off between steps. Bklit:
FunnelChart(edges,layers,showPercentage). - Sankey diagram — Flows between nodes, where link width is the quantity. Bklit:
SankeyChart+SankeyNode+SankeyLink. - Sunburst chart — A hierarchy drawn as nested rings of arcs; click to drill down. Bklit:
SunburstChart(focusId,SunburstBreadcrumb). - Choropleth map — A map with regions shaded by value. Bklit:
ChoroplethChart(zoomEnabled,clickToZoom,ChoroplethMarker). - Range area chart — A filled band between a low and a high value at each point, with no line of its own. Bklit:
Band upperKey lowerKeyalone in aLineChart.
Anatomy: the parts of a chart
- Plot area — The inner rectangle where the data is drawn, inside the margins. Bklit:
innerWidth/innerHeightfromuseChart(). - Margin — Space around the plot area that holds axes and labels. Bklit:
marginon the chart root (40px each side by default). - Axis — The ruler along an edge that shows what positions mean. Bklit:
XAxis,YAxis(bar charts useBarXAxis/BarYAxis). - Tick — A mark at a value along an axis. Its text is the tick label. Bklit:
numTicksonXAxis/YAxis;YAxis formatValueformats labels. - Gridlines — Faint lines across the plot at tick positions, to help the eye read values. Bklit:
Grid(horizontalon,verticalopt-in, dashed by default). - Baseline / zero line — The line bars and areas grow from, usually 0. Bklit: emphasized with
Grid highlightRowValues={[0]}. - Background texture — A decorative pattern filling the plot area, used instead of gridlines. Bklit:
Background(pattern presets, fades on all four edges by default). - Legend — The key that maps colors or shapes to series. Bklit:
Legend+LegendItem/LegendMarker/LegendLabel/LegendValue/LegendProgress;HeatmapLegendfor color scales. - Series — One named group of values drawn as one line, one set of bars or one set of slices. Bklit: one
<Line dataKey>/<Bar dataKey>/<Area dataKey>per series. - Datum — One data point, usually one row of your data array. Bklit: one object in
data. - Data key — The field name a chart reads values from. Also called an accessor (d3) or a channel (TanStack Charts). Bklit:
dataKeyon a series (y value);xDataKeyon the chart root (defaults to"date", or"name"onBarChart). - Center label — A stat printed in the hole of a donut, ring or gauge. Bklit:
PieCenter,RingCenter,RadialCenter,SunburstCenter.
Scales and axes: how values become positions
- Scale — The function that maps data values (the domain) to pixels (the range). Bklit: chosen by the chart (time x on line and area, band x on bar, linear y).
- Domain — The span of data values a scale covers, such as 0–500 or Jan–Dec. Bklit: automatic.
LineChart yScaleDomainMaxcaps the top;ComposedChart yDomainssets it per axis; sparklines takeyDomain. - Time scale — An x axis that spaces dates by real elapsed time. Bklit: line, area, composed, scatter and candlestick charts expect
Datex values. - Band scale — Equal slots for categories, each holding a bar or group. Bklit:
BarChartx axis;barGap(0–1 fraction of a slot) andbarWidth(px). - Band padding — The gap between category slots, or between bars inside a group. Bklit:
BarChart barGap(between slots),Bar groupGap(inside a group, px). - Dual axis — Two y axes with different scales on one chart. Bklit:
ComposedChartwithyAxisIdon series and a secondYAxis orientation="right". - Nice ticks — Axis ends rounded to tidy numbers (0, 50, 100), not raw extremes. Bklit: automatic.
- Large-number formatting — Abbreviating axis values (1.2k, 3.4M). Bklit:
YAxis formatLargeNumbers(on by default) orformatValue.
Marks and shape: how series are drawn
- Curve — How the path is smoothed between points. Also called interpolation. Bklit:
curve={curveNatural | curveMonotoneX | curveLinear | curveStep | curveBasis | curveCatmullRom}fromd3-shape.Linedefaults to natural,Areato monotone. - Monotone curve — Smooth, but never overshoots above or below the data. Bklit:
curve={curveMonotoneX}. - Point marker — A dot drawn at every data point on a line or area. Also called a vertex marker or bead. Bklit:
showMarkers(+markers={{ radius, ringGap, … }}). - Terminal marker — One dot or ring at the last point of a line, marking "now". Bklit:
LineSeriesTerminalMarker. - Dashed tail — The last part of a line drawn dashed to show an incomplete period. Bklit:
Line dashFromIndex={n}(+dashArray). - Edge fade — A line, gridline or texture fading to transparent at the chart's sides. Bklit:
Line fadeEdges(on by default),Area fadeEdges,Grid fadeHorizontal,Background fadeHorizontal/fadeVertical. - Gradient fill — An area fill that fades from the line color toward transparent at the bottom. Bklit:
Areadefault (gradientToOpacity,gradientSpan). - Stroke gradient — A line whose color ramps from left to right. Bklit:
Line strokeGradient={[…colors]}. - Glow — A soft blurred halo behind a line or shape. Bklit:
Line glow(or{ blur, opacity, strokeWidth }),Ring showGlow,PieSlice showGlow,RadarArea showGlow,Gauge glow. No glow onAreaorBar. - Pattern fill — Hatching, dots or other texture used as the fill of a series instead of a flat color. Bklit:
PatternPreset id+fill="url(#id)";PatternAreafor areas. - Bar corner radius — Rounding on the bar ends. Bklit:
Bar lineCap="round" | "butt" | number. - Data label — The number printed on or next to a mark. Also called a value label. Bklit:
Bar showValue(+valueLabelFormatter,valueLabelPosition,valueLabelOrientation);Area showValue(+valueLabelMinCount,valueLabelMaxCount). - Ghost series — A faint comparison series, such as "yesterday", drawn behind the current one. Bklit:
ghostDataKeyonRadialBar/RadialArea/RadialDotBar; a dashed secondLineelsewhere.
Series layout: stacking and comparing
- Stacking — Placing series on top of each other so values add up. Bklit: bars only,
BarChart stacked. - Stack offset — How a stack's baseline is chosen: from zero, normalized to 100%, or centered. Bklit: No Bklit equivalent. Precompute the values (for example, percentages per row).
- Normalized (100%) stack — Stacked bars scaled so every bar is the same height and shows share. Also called expand. Bklit: No built-in. Convert rows to percentages, then
BarChart stacked. - Diverging — Positive values go up (or right) and negative values go down from a shared zero. Bklit:
BarandBarLollipopdraw negatives below zero;ProfitLossLinecolors by sign. - Small multiples — The same small chart repeated per category in a grid. Also called faceting or a trellis. Bklit: render several charts in a CSS grid; sparklines are built for this.
Color and encoding
- Categorical palette — Distinct hues for unrelated series. Bklit:
var(--chart-1)…var(--chart-5). - Sequential scale — Light-to-dark steps for ordered magnitude. Bklit:
--chart-scale-01…--chart-scale-05(heatmap, choropleth). - Diverging scale — Two hues meeting at a neutral midpoint, for above/below a reference. Bklit:
--chart-positive/--chart-negative(profit/loss,Band negativeFill). - Binned color (quantize / threshold) — Continuous values cut into a few discrete color steps. Bklit:
HeatmapChartlevels (levelStyles). - Semantic color — Color that carries meaning, such as up/down or good/bad, rather than identity. Bklit:
--chart-positive,--chart-negative;Candlestick positiveFill/negativeFill. - Design tokens — Theme variables the chart reads, so it follows light and dark mode. Bklit: CSS variables
--chart-*, typed viachartCssVars.
Reference and annotation
- Reference line — A straight line at a fixed value, such as a target, average or zero. Bklit:
Grid highlightRowValues={[v]}for a value line;ProjectionLine targetfor a goal on a forecast;Deadline fillType="none"for a vertical date line. - Reference area — A shaded rectangle at fixed values that marks a goal range or a time window. Bklit:
ReferenceArea y1 y2(value range) orx1 x2(time window). - Range band — A shaded band whose top and bottom vary at each point, such as min/max or a confidence interval. Also called an error band. Bklit:
Band upperKey lowerKey(before theLine). - Difference area — Shading between two lines, colored by which one is ahead. Also called a gap fill. Bklit:
Band upperKey lowerKey negativeFill. - Bollinger bands — A moving average with bands a set number of standard deviations above and below. Bklit:
withBollingerBands(data, { dataKey })+Band. - Trend line — A best-fit straight line through the data (least-squares regression). Bklit:
TrendLine dataKey. - Projection — A forecast line extending past the last real point. Also called an extrapolation. Bklit:
ProjectionLine+buildProjectionPath;areaFillshades under it;targetadds a goal and rings the crossing. - Goal crossing — The point where a forecast first reaches a target value. Bklit:
ProjectionLine target={v}(showTargetMarker,showGuides). - Event marker — An icon pinned to a date to annotate an event (a launch, an incident). Also called an annotation. Bklit:
ChartMarkers items={[{ date, icon, title }]}. - Deadline — A vertical marker at a due date, shading the time after it. Bklit:
Deadline date label(fillType="pattern" | "gradient" | "solid" | "none"). - Weekend shading — Bands over Saturdays and Sundays on a date axis. Bklit:
Weekends.
Interaction
- Tooltip — The floating panel that shows exact values for the hovered point. Bklit:
ChartTooltip(rows,content);HeatmapTooltip,SankeyTooltip,ChoroplethTooltip. - Crosshair — A guide line that follows the pointer across the plot so you can read the exact x (and sometimes y) position. Bklit:
ChartTooltip showCrosshair(on by default for line and area);ChartCrosshairadds a free y line with a value pill. - Date pill — The small label on the x axis that shows the hovered date. Bklit:
ChartTooltip showDatePill. - Hover dot — The dot drawn on each series at the hovered x. Bklit:
ChartTooltip showDots,dotVariant="dot" | "ring". - Nearest-point hover — Hover snaps to the closest data point rather than needing an exact hit. In other libraries this is often called Voronoi or mesh. Bklit: built in. Time-series charts snap to the nearest x; jittered
ScatterChartsnaps to the nearest dot. - Hover highlight — The hovered series or segment is emphasized while the rest dims. Also called focus + context. Bklit:
Line showHighlight+highlight={{ span, dimOpacity, glow }};Bar fadedOpacity;Scatter inactiveMode. - Linked hover — Hovering one element (a legend row, a ring) highlights the matching part of another. Bklit: share
hoveredIndex/onHoverChangebetweenLegendandPieChart/RingChart/RadialChart/FunnelChart. - Scrubber — A handle you drag around a radial chart to read values. Bklit:
RadialScrubber. - Drill-down — Clicking a segment to zoom into its children. Bklit:
SunburstChart focusId/onFocusChange;ChoroplethChart clickToZoom. - Zoom / pan — Wheel or drag to change the visible area. Bklit: choropleth only (
zoomEnabled). Cartesian charts zoom through a Brush instead. - Brush — A draggable selection on a mini chart that sets the main chart's x range. Bklit:
ChartBrushLayout+ChartBrush(@bklit/brush), for area and line charts with a date x axis. - Responsive container — The chart resizes to fill its parent. Bklit: built in; set the size on the wrapper, or use
aspectRatioon the root.
Motion and loading
- Enter animation — How marks draw in on mount: grow, fade or reveal. Bklit: on by default;
animationDuration/enterTransitionon the root,Bar animationType="grow" | "fade",animate={false}per series. - Stagger — Each bar or slice starts its animation slightly after the previous one. Bklit:
Bar staggerDelay,FunnelChart staggerDelay. - Spring — Physics-based easing that settles naturally instead of on a fixed curve. Bklit:
enterTransition={{ type: "spring", stiffness, damping }}. - Data transition — Animating from old values to new ones when the data changes. Bklit: built in;
yDomainTweenanimates the y axis. - Skeleton — A placeholder chart shown while data loads. Bklit:
status="loading"onLineChart/AreaChart/BarChart/HeatmapChart/ComposedChart; standalone*ChartLoading. - Shimmer — A light sweep that moves across a loading placeholder. Bklit:
loadingStyle="pulse" | "sweep"onLine/Area;Grid shimmer. - Reduced motion — Turning animation down or off for users who ask the OS to reduce motion. Bklit:
animate={false}; respectprefers-reduced-motionin the app.
Radial geometry
- Inner radius — The radius of the hole in a donut or ring. Bklit:
PieChart innerRadius(px);RingChart baseInnerRadius. - Pad angle — The angular gap between neighboring slices. Bklit:
PieChart padAngle(radians). - Corner radius — Rounded corners on slices or arcs. Bklit:
PieChart cornerRadius,RadialBar cornerRadius;Ring lineCap. - Start / end angle — Where the arc sweep starts and stops, for semicircles and gauges. Bklit:
startAngle/endAnglein radians, with 0 at 12 o'clock, clockwise (Gaugeuses degrees). - Arc — One curved segment of a pie, ring or gauge. Bklit:
PieSlice,Ring,SunburstSegment.
Named charts Bklit does not ship
When a request names one of these, say plainly that Bklit has no component for it, and offer the nearest option listed.
- Stacked area / streamgraph — Areas piled into a running total, or centered and flowing. Bklit: No Bklit equivalent. Nearest: overlapping translucent
Areas, or stacked bars. - Bubble chart — A scatter where dot size encodes a third value. Bklit: No Bklit equivalent.
Scatter radiusis fixed per series. - Box plot — Median, quartiles, whiskers and outliers per group. Bklit: No Bklit equivalent. Nearest:
Bandfor a range. - Waterfall chart — Floating bars that show step-by-step gains and losses up to a total. Bklit: No Bklit equivalent.
- Bullet chart — One bar against shaded qualitative ranges and a target tick. Bklit: No Bklit equivalent. Nearest:
Gauge orientation="linear"(a single-value meter), or aReferenceAreabehind bars. - Treemap — A hierarchy as nested rectangles sized by value. Bklit: No Bklit equivalent. Nearest:
SunburstChart. - Chord diagram — Flows between groups drawn as ribbons inside a circle. Bklit: No Bklit equivalent. Nearest:
SankeyChart. - Bump chart — Lines tracking rank position over time. Bklit: No Bklit equivalent. Nearest: a
LineChartof ranks. - Error bars — Whiskers that show uncertainty around each value. Bklit: No Bklit equivalent. Nearest:
Bandaround a line.