noahgdev

Dot Plot

Dashboards

About

A distribution drawn as columns of stacked dots, with the peak columns at full strength. It suits counts per day or per bucket where a bar chart would look too heavy.

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

Code

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

Usage.tsx

import { DotPlot } from "@/components/ui/dashboardcn-dot-plot"

const days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
const hourly = [1, 1, 2, 1, 2, 4, 6, 4, 2, 1, 2, 1, 1, 1]

export default function DotPlotDemo() {
  return (
    <div className="flex w-full max-w-sm flex-col gap-8">
      <DotPlot data={hourly} color="var(--color-green-600)" />
      <DotPlot data={[3, 5, 8, 12, 7, 4, 2]} labels={days} color="var(--color-blue-600)" />
      <DotPlot data={[2, 3, 5, 4, 6, 3, 2]} labels={days} rows={4} emphasis={0} color="var(--foreground)" className="[--dot-size:0.875rem]" />
    </div>
  )
}

More by noahgdev

View all
  • Donut Chart

    Donut Chart

    1
  • Metric List

    Metric List

  • Sankey Chart

    Sankey Chart

  • Scatter Chart

    Scatter Chart

  • Radar Chart

    Radar Chart

  • Composed Chart

    Composed Chart

  • Bar Chart

    Bar Chart

  • Funnel Chart

    Funnel Chart

More in Dashboards

View all
  • Fernly — Project Management Dashboard with Kanban

    Fernly — Project Management Dashboard with Kanban

    659
  • Analytics Dashboard

    Analytics Dashboard

    59
  • Creator Dashboard

    Creator Dashboard

    208
  • Insights Dashboard

    Insights Dashboard

    35
  • serf dashboard

    serf dashboard

    137
  • Corbel — Sales Analytics Dashboard

    Corbel — Sales Analytics Dashboard

    293
  • Dashboard with Collapsible Sidebar

    Dashboard with Collapsible Sidebar

    2.7K
  • Business/Sales Dashboard

    Business/Sales Dashboard

    1.5K