{"id":28467353,"url":"https://github.com/tdiprima/ai-chart-builder","last_synced_at":"2025-07-01T01:31:43.884Z","repository":{"id":285456344,"uuid":"958176634","full_name":"tdiprima/AI-Chart-Builder","owner":"tdiprima","description":"AI-powered chart building","archived":false,"fork":false,"pushed_at":"2025-04-11T18:31:31.000Z","size":293,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T07:36:42.747Z","etag":null,"topics":["ai-charting","azure-openai","data-visualization","gpt-4o","natural-language-interface","openai-api","plotly"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tdiprima.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-31T19:10:01.000Z","updated_at":"2025-04-11T18:46:24.000Z","dependencies_parsed_at":"2025-03-31T21:26:07.821Z","dependency_job_id":"ef26687f-3792-4af8-b890-c1a11105e703","html_url":"https://github.com/tdiprima/AI-Chart-Builder","commit_stats":null,"previous_names":["tdiprima/aichartbuilder","tdiprima/ai-chart-builder"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/tdiprima/AI-Chart-Builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2FAI-Chart-Builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2FAI-Chart-Builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2FAI-Chart-Builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2FAI-Chart-Builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tdiprima","download_url":"https://codeload.github.com/tdiprima/AI-Chart-Builder/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tdiprima%2FAI-Chart-Builder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262878830,"owners_count":23378492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-charting","azure-openai","data-visualization","gpt-4o","natural-language-interface","openai-api","plotly"],"created_at":"2025-06-07T07:30:46.752Z","updated_at":"2025-07-01T01:31:43.876Z","avatar_url":"https://github.com/tdiprima.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ AI Chart Builder\n\nTurn plain English into clean, dynamic charts — powered by GPT-4o, LLaMA 4, or whatever AI provider fits your vibe.\n\nBuilt with Plotly + Dash. Just type your prompt (\"Bar chart of sales by region\"), and boom: chart.\n\n## 🧠 What's Inside\n\n- One unified script: `ai_chart_builder.py`  \n- Choose from **Azure OpenAI**, **OpenAI**, or **Groq (LLaMA 4)**  \n- Easy switch via a single `AI_PROVIDER` variable  \n- Web UI with prompt box + model picker  \n- Handles errors, shows retries, and gives you Plotly charts like magic\n\n---\n\n## 🚀 Quickstart\n\n### 1. Clone it  \nDownload or clone the repo. Make sure you have Python 3.8+.\n\n### 2. Install deps  \n```bash\npip install dash dash-bootstrap-components pandas plotly pandas-datareader openai groq python-dotenv\n```\n\n### 3. Set up `.env`  \nCreate a `.env` file next to the script with any of these:\n\n```env\n# Azure\nAZURE_OPENAI_ENDPOINT=your_azure_endpoint\nAZURE_OPENAI_KEY=your_key\nOPENAI_API_VERSION=2023-05-15\n\n# Groq\nGROQ_API_KEY=your_groq_key\n```\n\n(OpenAI uses your default config — no extra setup needed.)\n\n### 4. Pick your AI provider  \nAt the top of `ai_chart_builder.py`:\n\n```python\nAI_PROVIDER = \"openai\"  # Options: \"azure\", \"groq\", \"openai\"\n```\n\nComment out the config blocks for the providers you *don’t* use.\n\n### 5. Run it  \n```bash\npython ai_chart_builder.py\n```\n\nOpen [http://localhost:8050](http://localhost:8050) and go wild.\n\n---\n\n## 🛠 Features\n\n- 🔄 Easily switch between providers  \n- 📊 Natural language → Plotly charts  \n- 🧠 Supports model selection (GPT-4o, 3.5, etc.)  \n- 🧼 Handles errors + retries  \n- 👁️‍🗨️ Clean Dash interface with spinner + logs  \n\n---\n\n## 🤯 Troubleshooting\n\n- **API errors?** Check your `.env`.  \n- **No data?** Prompt might be too vague.  \n- **Weird chart?** That’s the AI being quirky. Try again or switch models.  \n- **Missing packages?** Reinstall with `pip`.\n\n---\n\n## 🙌 Contribute\n\nFork, tweak, PR, repeat. Open to ideas, bug reports, and feature adds.\n\n\u003e *Heads-up:* Sometimes the model forgets to put the date in the title. Sometimes it hallucinates. Don't trust it with your taxes.\n\n---\n\n## 📄 License\n\n[MIT](LICENSE). Go nuts — just credit me when you use it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdiprima%2Fai-chart-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftdiprima%2Fai-chart-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftdiprima%2Fai-chart-builder/lists"}