Join our Discord community
Line chart

Icon-Dot Line Chart

Line chart with custom icon-based data point markers for enhanced visual appeal. 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-07.json
npx shadcn@latest add https://www.shadcn.io/registry/line-chart-07.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/line-chart-07.json
bunx shadcn@latest add https://www.shadcn.io/registry/line-chart-07.json

Features

  • Custom icon dots using GitCommitVertical icons as data point markers
  • Themed styling with background fill and stroke colors matching chart theme
  • Dynamic positioning with precise icon placement at each data point
  • Natural curve interpolation creating smooth lines between custom markers
  • 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:

  • Development dashboards - Show commit history or deployment timelines built with Next.js
  • Project management - Display milestone progress with custom markers using TypeScript and Tailwind CSS
  • Creative presentations - Add visual interest with themed icon markers
  • Status tracking - Use icons to represent different states or events

API Reference

ChartLineDotsCustom

PropTypeDefaultDescription
classNamestring-Additional CSS classes for the container

Implementation Notes

  • Custom dots use render function with cx/cy coordinates for precise positioning
  • Icons are sized to 24x24 pixels with proper centering calculations
  • Background fill uses CSS variable for theme consistency
  • Stroke color matches the line color using chart configuration
  • Best suited for datasets where each point represents a significant event