Skip to content

Next.js application that leverages OpenAI to generate visualizations to help make sense of the data.

Notifications You must be signed in to change notification settings

AbanoubSameh/data-draw

Repository files navigation

DataDraw

DataDraw is a Next.js application designed to make data visualization simple and intuitive. Users can upload a CSV file, specify their requirements, and let the application leverage OpenAI to generate visualizations, making the data easier to understand.
alt text Try DataDraw

How It Works

  1. Upload CSV: Begin by uploading a CSV file containing your dataset.
  2. Specify Visualization Requirements: Provide a description of the desired chart (e.g., "Show a pie chart of customer demographics by age"). The clearer your description, the more accurate the result.
  3. Generate Visualization: DataDraw utilizes OpenAI's capabilities to interpret your instructions and generate the appropriate chart for your data.

Getting Started

Prerequisites

  • Node.js and npm (or an alternative package manager) installed
  • OpenAI API key (necessary for AI functionality)

Installation and Development Setup

  1. Clone the Repository:

    git clone https://github.com/AbanoubSameh/data-draw.git
    cd data-draw
  2. Install Dependencies:

    Choose your preferred package manager and install the dependencies:

    npm install
    # or
    yarn install
    # or
    pnpm install
    # or
    bun install
  3. Run the Development Server:

    Start the server using your package manager:

    npm run dev
    # or
    yarn dev
    # or
    pnpm dev
    # or
    bun dev

Configuration

To integrate OpenAI's capabilities, you need to set up your OpenAI API key:

  1. Create a .env file in the root directory of the project.

  2. Add your OpenAI API key:

    OPENAI_API_KEY=your_api_key_here
    GETCHART_ASSISTANT=asst_afrfIMBZ7DHhcLk9aWFeVGZP
    

    Replace your_api_key_here with your actual OpenAI API key.

About

Next.js application that leverages OpenAI to generate visualizations to help make sense of the data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published