Imagine ArtImagine Art

SVG-based bar and donut chart for data visualization with labels and value displays.

Media & Visuals

Import

import { Chart } from "@/components/ui"

API

PropTypeDefaultDescription
type"bar" | "donut"—Chart type.
dataChartDataItem[]—Array of { label, value, color? } data items.
heightnumber—Custom chart height in pixels.
showLabelsboolean—Show data labels.
showValuesboolean—Show numeric values.

Examples