Mon: 4Tue: 7Wed: 5Thu: 9Fri: 6
Week 1: 38Week 2: 52Week 3: 61Week 4: 78Week 5: 86
Approved: 8Changes requested: 3Blocked: 1
Import
Import @caderno-ui/elements/chart, or its React or Astro adapter. Charts and Rough.js are not included in the elements root import.
Animation
Charts animate when they enter the viewport or their data changes. Call replay() to repeat, or set animation="none" to disable. Reduced-motion preferences are respected.
API reference: <cad-chart>
animationanimationCadChartAnimation'draw'fill-stylefillStyleCadChartFillStyle'hachure'headingheadingstring'Chart'roughnessroughnessnumber1.2seedseednumber42show-legendshowLegendbooleanfalseshow-valuesshowValuesbooleantruetypetypeCadChartType'bar'value-labelvalueLabelstring'Value'animationCadChartAnimationanimationyesfillStyleCadChartFillStylefill-styleyesheadingstringheadingnoroughnessnumberroughnessyesseednumberseedyesshowLegendbooleanshow-legendyesshowValuesbooleanshow-valuesyestypeCadChartTypetypeyesvalueLabelstringvalue-labelno(default)Declarative `cad-chart-item` data points.titleVisible chart title. Falls back to the `heading` attribute.baseChart container.emptyEmpty-state message.legendChart legend.legend-itemIndividual legend entry.plotVisual SVG plot, hidden from assistive technology.titleVisible chart title.--cad-chart-color-1First series color.--cad-chart-color-2Second series color.--cad-chart-color-3Third series color.--cad-chart-color-4Fourth series color.--cad-chart-color-5Fifth series color.--cad-chart-color-6Sixth series color.--cad-chart-gridGrid line color.--cad-chart-inkChart foreground color.--cad-chart-paperChart paper color.API reference: <cad-chart-item>
colorcolorstring''labellabelstring''valuevaluenumber0colorstringcoloryeslabelstringlabelyesvaluenumbervalueyes(default)Progressive fallback text shown before the element upgrades.Data and labels
Keep labels short and add units with value-label. Negative values are clamped to zero.
Accessibility
A native table exposes the chart data to assistive technology. The SVG is decorative, and item text stays readable before JavaScript loads.