Easily transform CSV data into customizable charts for React apps.
Project details
ChartCN is a free, open source chart generator designed for shadcn/ui and React. It allows users to paste CSV or JSON data and preview 14 chart types built on Recharts, generating a self-contained TSX component with ease. No new dependencies are needed, making integration seamless.
ChartCN is a free and open source tool designed to transform your CSV or JSON data into stylish chart components specifically for shadcn/ui and React applications. With ChartCN, users can simply paste their data, preview 14 different chart types built upon Recharts, and effortlessly generate a self-contained TSX component to integrate directly into their projects without the need for additional dependencies or account creations.
Diverse Chart Types: Choose from 14 pre-defined chart types including Bar, Line, Area, Pie/Donut, Radial/Gauge, and more, catering to various data visualization needs.
Flexible Data Input: Easily paste or upload data in formats including CSV, JSON, TSV, or Markdown tables. The tool automatically detects the format, streamlining the process.
Tailored Code Generation: The generated component retains your actual field names, which means no additional mapping code is necessary when integrating with your data sources.
One-Click Installation: Use the shadcn CLI to quickly incorporate your generated charts into your project with a simple command, eliminating the hassle of manual installations.
Real-Time Customization: Customize the appearance of your charts with options for colors, stacking, grouping, and other visual settings that are reflected live in the preview.
Export Options: Select between inline data modes or connect your component to live data. Furthermore, charts can be downloaded as high-quality PNG/SVG images or shared via unique URLs that encode the exact chart settings.
User-Friendly Experience: Charts can be saved in the browser for easy access later, and one-click copying simplifies the workflow, making it accessible for developers and non-developers alike.
| Chart Type | Use Case |
|---|---|
| Bar | Compare values across categories. |
| Line | Show trends over time. |
| Area | Highlight volume/magnitude trends. |
| Combo | Combine bar and line charts for dual data representation. |
| Pie / Donut | Visualize part-to-whole distributions. |
| Radar | Multi-metric comparisons. |
| Scatter | Analyze relationships between two numeric variables. |
| Radial / Gauge | Gauge progress toward specific goals per category. |
| Horizontal Bar | Ideal for long category labels and ranking visualizations. |
| KPI Sparkline | Display headline metrics with corresponding trends. |
| Interactive Area | Offer interactive data exploration over time series. |
| Waterfall | Illustrate sequential value changes towards a total. |
| Heatmap | Provide visual intensity grids for comparative analysis. |
| Funnel | Analyze conversion rates through different stages. |
To explore ChartCN, visit the live app and begin generating compelling data visualizations quickly and efficiently. ChartCN is built on a robust tech stack including Next.js and TypeScript, ensuring a seamless development experience.
Built by ShadcnDeck
For further details, contributions, or to view the complete documentation, check the GitHub repository.
Comments
0Start the conversation
Share the first comment.