Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ChartGenerationAI

ChartGenerationAI is a project that allows you to generate Highcharts charts from a single prompt using OpenAI's API.

You can create line charts, bar charts, pie charts, bubble charts, and more by simply providing a natural language description of the chart you want.


Setup

  1. Clone the repository:
git clone https://github.com/RediIbra/ChartGenerationAI.git
cd ChartGenerationAI
  1. Create an OpenAI API Key:

Follow these steps:

  1. Go to OpenAI API Keys.

  2. Log in with your OpenAI account.

  3. Click on “Create new secret key”.

  4. Copy the generated key. Keep it safe, you won’t see it again.

  5. Store your API key locally using User Secrets:

dotnet user-secrets init
dotnet user-secrets set "OpenAI:ApiKey" "sk-your-api-key-here"

This ensures your key is never pushed to GitHub.

  1. Run the project:
dotnet run

Usage

  • Open the application in your browser.
  • Navigate to a chart page (Line, Bar, Pie, etc.).
  • Enter your chart prompt in natural language.
  • The app will generate the Highcharts JSON configuration and render the chart dynamically.

Notes

  • Make sure appsettings.Development.json is ignored in .gitignore to avoid exposing your API key.
  • The project uses ASP.NET Core MVC with Highcharts for chart rendering.
Screenshot 2025-08-25 104540

About

Generate a chart by prompting on the input using AI

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages