Use ChatGPT to create a dataset for you and use same data to create an interactive JavaScript graph

Опубликовано: 06 Июнь 2026
на канале: Too Long; Didn't Watch Tutorials
701
12

This video will show you two examples of how ChatGPT can not only generate a dataset for you, but it can also use these same data and put them into an interactive JavaScript graph for you. In other words, it does nearly all the work for you. Typically, what it does is create the dataset and then puts each data point into a JavaScript array.

The great part is that you don't need to really know JavaScript as long as you can copy the code, put it into a text file, and save as an .html file. That's it! I do recommend trying to learn JavaScript, however, I am also a firm believer that you should understand what you are working towards. This should give you a sample of what you can do with JavaScript (and the Plotly data visualization library). Check the very bottom for links with the code I generated from ChatGPT.

Here are the video shortcuts:

Intro: 0:00
Overview: 0:06
Example 1 - Create dataset and graph of NY Yankees Wins/Losses: 0:20
Example 2 - Create dataset and graph of London, England population: 1:31
Summary/Debrief: 2:52

Code Links:

Example 1 (NY Yankees): https://codefile.io/f/LqoHMDEqzIeustY...

Example 2 (London, England): https://codefile.io/f/vg6vkBGtYCQMFM0...