| title | emoji | colorFrom | colorTo | sdk | pinned |
|---|---|---|---|---|---|
ChartGPT |
๐ |
red |
red |
docker |
false |
Try it Live โข Documentation โข Report Bug
Forget complex charting libraries and endless documentation. ChartGPT lets you create stunning, interactive visualizations by simply asking for what you want in plain English. Upload your CSV, ask a question, and watch as AI generates the perfect chart for your data.
You: "Show me a correlation heatmap of all numeric columns"
ChartGPT: *generates beautiful visualization + Python code*
No coding required. No chart selection headaches. Just data insights at the speed of thought.
|
Natural language to beautiful charts. Powered by Qwen2.5-Coder-32B-Instruct for intelligent code generation. Easy on the eyes. Toggle between light and dark themes with a single click. No complicated file pickers. Just drag your CSV and you're ready to go. See exactly how your chart was created. Every visualization comes with the Python code. |
Interactive data tables with sorting, filtering, and search before you even create charts. Not happy with the result? Ask again and refine your visualization instantly. Docker-ready. Deploy to Hugging Face Spaces, Heroku, Railway, or your own server in minutes. Built with modern tech stack for lightning-fast responses and smooth interactions. |
graph LR
A[๐ Upload CSV] --> B[๐ญ Ask Question]
B --> C[๐ค AI Generates Code]
C --> D[๐ Beautiful Chart]
D --> E[๐ Refine or Export]
Drag and drop any CSV file (up to 5MB). Instantly preview your data in an interactive table.
Type naturally:
- "Show me monthly revenue trends as a line chart"
- "Create a bar chart comparing product categories"
- "Plot the distribution of customer ages"
- "Make a scatter plot of price vs. quantity sold"
ChartGPT analyzes your data, writes the visualization code, and renders your chart in seconds. View the generated Python code anytime.
Built with cutting-edge technologies for the best developer and user experience:
- ๐ฏ Dash โ Reactive web application framework
- ๐ค ChartGPT Library โ AI-powered chart generation engine
- ๐จ Dash Mantine Components โ Beautiful, modern UI components
- ๐ Plotly โ Interactive, publication-quality visualizations
- ๐ Dash AG Grid โ Professional data tables
- ๐ง Hugging Face Qwen2.5-Coder โ State-of-the-art code generation LLM
Clone and run in under 2 minutes:
# Clone the repository
git clone https://github.com/yourusername/chartgpt.git
cd chartgpt
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Set up your Hugging Face token
echo "HUGGINGFACE_API_KEY=your_token_here" > .env
# Launch the app
python app.py๐ Open your browser to http://localhost:8050
Even easier with Docker:
# Build the image
docker build -t chartgpt .
# Run the container
docker run -p 7860:7860 chartgpt๐ Access at http://localhost:7860
| Tip | Description |
|---|---|
| ๐ก Be Specific | "Line chart of sales over time" works better than "show sales" |
| ๐ Iterate | Use "Ask again" to refine your visualizations |
| ๐ File Size | Keep CSVs under 5MB for optimal performance |
| ๐จ Explore | Try different chart types: scatter, bar, line, pie, heatmap, etc. |
| ๐ Inspect Code | Learn from the generated Python code |
chartgpt/
โโโ ๐ app.py # Main Dash application
โโโ ๐ฆ requirements.txt # Python dependencies
โโโ ๐ณ Dockerfile # Container configuration
โโโ ๐ assets/
โ โโโ ๐ logo_dark.svg # Logo for light theme
โ โโโ โ๏ธ logo_light.svg # Logo for dark theme
โ โโโ ๐จ custom.css # Custom styling
โโโ ๐ README.md # You are here!
Customize the AI model in app.py (line 464):
# Switch to different models
chart = cg.Chart(df, model="huggingface/Qwen/Qwen2.5-Coder-32B-Instruct")
# Try other options:
# model="openai/gpt-4"
# model="anthropic/claude-3-sonnet"Perfect for sharing with the world:
- Create a new Space on Hugging Face
- Select Docker as the SDK
- Push your code to the Space repository
- Add your
HUGGINGFACE_API_KEYin Settings โ Repository secrets - Your app goes live automatically!
Deploy anywhere containers run:
| Platform | Method |
|---|---|
| ๐ Railway | Connect GitHub repo, auto-deploy on push |
| ๐ฃ Heroku | Use included Dockerfile with Heroku Container Registry |
| โ๏ธ AWS/GCP/Azure | Deploy as containerized web service |
| ๐ฅ๏ธ VPS | Run with gunicorn -b 0.0.0.0:7860 app:server |
We love contributions! Here's how to get started:
# Fork the repo, then clone your fork
git clone https://github.com/YOUR_USERNAME/chartgpt.git
# Create a feature branch
git checkout -b feature/amazing-feature
# Make your changes and commit
git commit -m 'โจ Add amazing feature'
# Push to your fork
git push origin feature/amazing-feature
# Open a Pull RequestThis project is licensed under the MIT License โ feel free to use it however you'd like!
Standing on the shoulders of giants:
- ๐ฏ ChartGPT Library โ Core AI chart generation
- โก Plotly Dash Team โ Amazing web framework
- ๐จ Mantine Dev โ Beautiful component library
- ๐ง Qwen Team โ Powerful open-source LLM
Made with โค๏ธ and AI
Transform your data, one question at a time