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.
Try DataDraw
- Upload CSV: Begin by uploading a CSV file containing your dataset.
- 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.
- Generate Visualization: DataDraw utilizes OpenAI's capabilities to interpret your instructions and generate the appropriate chart for your data.
- Node.js and npm (or an alternative package manager) installed
- OpenAI API key (necessary for AI functionality)
-
Clone the Repository:
git clone https://github.com/AbanoubSameh/data-draw.git cd data-draw
-
Install Dependencies:
Choose your preferred package manager and install the dependencies:
npm install # or yarn install # or pnpm install # or bun install
-
Run the Development Server:
Start the server using your package manager:
npm run dev # or yarn dev # or pnpm dev # or bun dev
To integrate OpenAI's capabilities, you need to set up your OpenAI API key:
-
Create a
.env
file in the root directory of the project. -
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.