BarChart
constBarChart: (props) =>ReactElement
Defined in: react/components/data/chart.tsx:28
A horizontal bar chart for comparing labelled magnitudes. Sheds the value column then truncates labels as width tightens, and clips rows that don’t fit — always keeping the bars on-screen.
<BarChart items={[{ label: "gpt-4o", value: 120 }, { label: "haiku", value: 80 }]} />Parameters
Section titled “Parameters”Returns
Section titled “Returns”ReactElement