compose-marks-and-views
Installation
SKILL.md
Compose Marks and Views
Use trigger → inspect → decide → build → verify. A chart type is usually a composition of marks with shared scales, not a component to look up by name.
Setup
Layer broad context first and direct evidence last:
import { areaY, defineChart, dot, lineY, ruleY, text } from '@tanstack/charts'
import { scaleLinear } from '@tanstack/charts/scales/linear'
import { scalePoint } from '@tanstack/charts/scales/point'
const rows = [
{ month: 'Jan', low: 72, value: 80, high: 89, label: '' },
{ month: 'Feb', low: 77, value: 86, high: 96, label: '' },
{ month: 'Mar', low: 84, value: 94, high: 106, label: 'Launch' },
]