panelui

Hex Chart

Component 2

About

A whole broken into parts, counted out in hexagonal cells.

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

Code

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

Usage.tsx

'use client';

import { HexChart } from '@/components/ui/panel-hex-chart';
const SEATS = [
  { label: 'Engineering', value: 48 },
  { label: 'Sales', value: 26 },
  { label: 'Support', value: 14 },
  { label: 'Design', value: 12 },
];

export default function HexChartGrid() {
  return (
    <HexChart data={SEATS} shape="grid" columns={14} aspectRatio={2} className="w-full max-w-lg">
      <HexChart.Cells />
      <HexChart.Tooltip showCells formatValue={(value) => `${value} seats`} />
      <HexChart.Legend />
    </HexChart>
  );
}

Dependencies

More by panelui

View all
  • Spinner

    Spinner

    8
  • Flow

    Flow

    6
  • Treemap Chart

    Treemap Chart

    1
  • Soundwave

    Soundwave

    1
  • Share

    Share

    1
  • Scatter Chart

    Scatter Chart

    1
  • Pyramid Chart

    Pyramid Chart

    1
  • Model Picker

    Model Picker

    1