KodeKarsa UI

Charts

Bar Chart

One series as vertical bars. The tallest bar takes the accent, the rest stay neutral.

src/components/charts/bar-chart.tsxNo ui-sdk

Weekly working hours

  1. 62Sen: 62 jam
  2. 71Sel: 71 jam
  3. 58Rab: 58 jam
  4. 77Kam: 77 jam
  5. 69Jum: 69 jam
  6. 21Sab: 21 jam
  7. 9Min: 9 jam

Import

tsx
import { BarChart } from "@/components/charts/bar-chart";

Guidelines

  • One series, no legend. To compare series, use Area Chart.
  • Screen readers get a list of labels and values.