Skip to content

ChartGPT: Create Beautiful Charts with Text in Seconds

ChatGPT is one of the hottest names in the town, sitting on the crown of the large language model(LLM). For data analysts who need to create charts from data, it has long been a dream for using the magic wand of ChatGPT for automatic chart building.

Enter ChartGPT, a powerful tool that converts text into beautiful charts within seconds. In this article, we'll explore ChartGPT, its features, and how to get started. We'll also introduce you to VizGPT, an alternative tool that offers a unique chat-based interface for creating and editing data visualizations.

📚

What is ChartGPT?

ChartGPT is an open-source project designed to make the process of creating charts as easy as writing a simple text description. With a few lines of code, you can generate visually appealing and informative charts based on your data. Whether you're a seasoned data analyst or just starting, ChartGPT can help simplify your charting tasks.

Chart GPT

Getting Started with ChartGPT

Setting up ChartGPT is a breeze. Follow the steps below to get started:

  1. Clone the ChartGPT repository:
git clone https://github.com/whoiskatrin/chart-gpt.git
cd chart-gpt
  1. Duplicate the .env.example template and add your OpenAI API key:
cp .env.example .env
OPENAI_API_KEY="your-api-key"
  1. Install the dependencies and start the development server:
npm install
npm run dev

## or
yarn
yarn dev

Now you're ready to go! The development server will start at http://localhost:3000.

Contributing to ChartGPT

ChartGPT is an open-source project, and contributions are welcome. If you'd like to contribute, follow these steps:

  1. Fork the ChartGPT repository.
  2. Clone your forked repository.
  3. Make your changes, commit them, and push them to your forked repository.
  4. Create a pull request on the ChartGPT repository.

VizGPT: An Alternative to ChartGPT

While ChartGPT is an excellent tool for creating charts from text, there's another tool you might want to consider: VizGPT (opens in a new tab). VizGPT provides a chat interface to create and edit data visualizations. Not only can it generate visualizations with a natural language query, but you can also transform or edit your visualization in context.

VizGPT

VizGPT allows you to build complex visualizations step by step through chatting, instead of designing a large prompt at once. This makes it ideal for users who are not familiar with data visualization tools or data transformations.

Some of the features VizGPT offers include:

  • Natural language to data visualization using Vega-Lite (opens in a new tab)
  • Chat context for editing visualizations, allowing users to make changes if the chart doesn't meet their expectations
  • Step-by-step exploration of data through chat-based interaction with visualizations
  • Uploading your own CSV dataset to create custom visualizations

VizGPT

Feeling good? Try it out at VizGPT Online Playground (opens in a new tab) right now!

Final Thoughts

VizGPT is a powerful tool that makes creating beautiful charts from text a breeze. Its easy-to-use setup and development server make it accessible to users of all skill levels, with a unique approach to building and editing data visualizations through natural language queries. By utilizing tools like VizGPT, creating visually appealing and accurate charts is now more accessible than ever. So, whether you're a seasoned data analyst or just starting out, give VizGPT a try and see how it can transform your charting experience.

Remember, both ChartGPT and VizGPT are open-source projects (opens in a new tab), so feel free to contribute and help improve these powerful tools for the data visualization community.

Happy charting!

📚