Join our Discord community
Line chart

Dotted Line Chart

Line chart with visible data point dots and interactive hover states. Built for React applications with Next.js integration and TypeScript support.

Powered by

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/line-chart-06.json
npx shadcn@latest add https://www.shadcn.io/registry/line-chart-06.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/line-chart-06.json
bunx shadcn@latest add https://www.shadcn.io/registry/line-chart-06.json

Features

  • Visible data points with filled dots matching line color
  • Interactive hover states with enlarged active dots (radius 6)
  • Natural curve interpolation creating smooth lines between points
  • Data point emphasis making individual values clearly visible
  • TypeScript support with complete type definitions for all props
  • shadcn/ui integration using ChartContainer and design tokens

Use Cases

This free open source React component works well for:

  • Presentation charts - Highlight specific data points for stakeholder meetings built with Next.js
  • Small datasets - Emphasize individual measurements with visible markers using TypeScript and Tailwind CSS
  • Interactive analysis - Allow users to see exact values at each point
  • Scientific data - Display precise measurements with clear point indicators

API Reference

ChartLineDots

PropTypeDefaultDescription
classNamestring-Additional CSS classes for the container

Implementation Notes

  • Dots are enabled by providing dot configuration object with fill color
  • Active dots enlarge on hover for better interactivity (r: 6)
  • Uses natural curve type for smooth interpolation between points
  • Best suited for datasets with 10 or fewer data points for clarity
  • Dot colors automatically match the line stroke color using CSS variables