panelui

Ring Chart

Component

About

Progress towards several targets, as concentric arcs.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Ring Chart to your project and fits it to your theme.

Code

How Ring Chart is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

'use client';

import { RingChart } from '@/components/ui/panel-ring-chart';
const STORAGE = [{ label: 'Storage', value: 141, maxValue: 200 }];

export default function RingChartGauge() {
  return (
    <RingChart data={STORAGE} size={208} strokeWidth={16} startAngle={-120} endAngle={120} className="max-w-sm">
      <RingChart.Ring index={0} />
      <RingChart.Center formatValue={(value) => `${value} GB`} />
    </RingChart>
  );
}

Dependencies

More by panelui

View all
  • Spinner

    Spinner

    8
  • Flow

    Flow

    4
  • Hex Chart

    Hex Chart

    2
  • Treemap Chart

    Treemap Chart

    1
  • Soundwave

    Soundwave

    1
  • Share

    Share

    1
  • Scatter Chart

    Scatter Chart

    1
  • Pyramid Chart

    Pyramid Chart

    1