Instrument · Free · Recharts or ECharts

Bar chart: pick what's on it

Every option is a prop of the installed chart. The preview and the code use the same props, so what you copy is what you see.

Options, preview and code

Engine
Presets
Data
Shape
Surroundings
Legend
Tooltip
Colours
Behaviour
Feel
States

Support · this week

Tickets by day

646
total

Thu leads with 151, 22% more than Wed.

Opened, Solved across 7 categories. Thu leads with 151, 22% more than Wed.
DayOpenedSolved
Code for this chart

"use client";

// Install: npx shadcn@latest add https://beautifulcharts.dev/r/instrument-bar-chart-recharts.json
import { BarChart } from "@/components/beautiful-charts/themes/instrument/recharts/bar-chart";
import type { ChartConfig } from "@/components/beautiful-charts/core/contracts";

const data = [
  { day: "Mon", tickets: 42, solved: 36 },
  { day: "Tue", tickets: 58, solved: 49 },
  { day: "Wed", tickets: 64, solved: 60 },
  { day: "Thu", tickets: 81, solved: 70 },
  { day: "Fri", tickets: 55, solved: 52 },
  { day: "Sat", tickets: 23, solved: 21 },
  { day: "Sun", tickets: 18, solved: 17 },
];

const config = {
  tickets: { label: "Opened" },
  solved: { label: "Solved" },
} satisfies ChartConfig;

export function MyChart() {
  return (
    <BarChart
      data={data}
      config={config}
      xKey="day"
      eyebrow="Support · this week"
      title="Tickets by day"
    />
  );
}