ChatGPT to draw and display charts (Google) in the chatbox — no need to paste code anywhere else.
My prompt:
INPUT = {input}
OUTPUT = {description} \n ![IMG](https://chart.googleapis.com/chart?chs={width}x{height}&cht=p&chd=t:{PopulationValue1},{PopulationValue2}&chl=PopulationCountry1|PopulationCountry2)
INPUT = Draw a pie diagram of the Population of the USA and Canada, using millions as the unit
There’re 3 parts:
- INPUT is for ChatGPT understand that we will request something.
- OUTPUT is for ChatGPT to learn the markdown syntax as well as use googleapis to generate charts
- INPUT = Draw a pie diagram of the Population of the USA and Canada, use millions as the unit => our actual request
Here’s the response from ChatGPT
Great! ChatGPT indeed can display an image inside the chatbox itself!
Now let’s generate a subsequence request without having to repeat the complex prompt
My next simple prompt:
using the same structured prompts, now generate the chart for the export of goods for the USA, Canada, and Australia