Hi Kirti Rattan
I guess azure OpenAI service primarily focuses on natural language processing and generation, and it doesn't support graph generation or visualization. you can try adding the graph as an image and try it as below
Use a different service to generate the graphs based on the data you want to visualize. Tools like Matplotlib, Plotly, or Seaborn in Python are popular for creating graphs. You can run this code in your Azure environment that supports your preferred graphing library. Once you have the graph, you can embed it in your chatbot's response. This depends on the platform where your chatbot is deployed. If it's a web-based chatbot, you can include image URLs or embed HTML containing the graph. If it's a different type of interface, you'll need to find a way to display images or visualizations.
The code below will convert ur graph to image.
import matplotlib.pyplot as plt
import numpy as np
# Generate data
x = np.linspace(0, 10, 100)
y = np.sin(x)
# Create a plot
plt.plot(x, y)
plt.title('Sin Wave')
# Save the plot as an image
plt.savefig('sin_wave.png')
If this helps kindly accept the answer thanks much.