quickest-silver
quickest-silver2y ago

Generate a Bar Chart

I want to generate a bar chart based on the API response result. I have successfully call the API and have the result in array of JSON object. Then I use Response AI to help me generate the bar chart. This is my prompt: ----- Based on the value in API response, show me a bar chart with the following configurations: 1. X-axis is the "Month" column value. 2. Y-axis is the "Total" value correspond to the "Month" column value. The bar is blue in color. If there is no result in the API response, tell user there is no data available. ------ But instead of generating a bar chart, it generates python sample code for me. What are the keywords that I miss out in order for the AI to generate a chart for me?
3 Replies

Did you find this page helpful?