MeldUI

Bar Chart

Compare values across categories with vertical, horizontal, and stacked bars.

Usage

Stacked & Horizontal

Use stacked and horizontal props.

Config Reference

PropertyTypeDefaultDescription
series{ name: string; data: number[] }[]requiredArray of data series
xAxis{ categories: string[] }requiredCategory labels for the X axis
stackedbooleanfalseStack bars on top of each other
horizontalbooleanfalseRender bars horizontally
barWidthstring | number-Width of each bar (e.g. '50%' or 20)
barGapstring-Gap between bars in the same category
dataLabels{ enabled?: boolean }{ enabled: false }Show values on bars