Illustration Graph

SVG line graph illustration for React and shadcn/ui with data points, axis labels, and a highlighted error region.

Updated

API error rate graphInvestigate 12h ago / now5xxapi / api/error rate / error rate40%20%0%now12h ago

Illustration Graph is a React SVG chart illustration for shadcn/ui. Use it in landing page sections for monitoring, observability, or analytics products.

Installation

pnpm dlx shadcn@latest add @cult-ui/illustration-graph

Props

PropTypeDescription
widthnumberSVG width
heightnumberSVG height
backgroundColorstringBackground color
borderColorstringBorder color
cardFillstringCard fill color
cardStrokestringCard stroke color
gridLineColorstringGrid line color
primaryLineColorstringPrimary line color
errorLineColorstringError line color
errorBadgeColorstringError badge background color
errorBadgeTextColorstringError badge text color
highlightAreaColorstringHighlight area fill color
highlightBorderColorstringHighlight area border color
textColorstringText color
mutedTextColorstringMuted text color
badgeTextstringBadge label text
headerTextstringHeader text
footerTextstringFooter text
yAxisLabelsstring[]Y-axis label strings
dataPointsDataPoint[]Chart data points (x, y)
errorRegion{ start: number; end: number }Optional error region range
showHighlightAreabooleanWhether to show the highlight area
customBadgeIconReactNodeCustom icon for the badge