Forum Discussion
jherbert44
Jun 30, 2026Copper Contributor
Data Visualisation / Charting in Azure Foundry
Hi Foundry community, We are working on an agent that can query internal data sources, and are looking for ways that we can visualise data (think pie charts, bar charts, etc.). This would be consume...
jherbert44
Jul 24, 2026Copper Contributor
If anyone else is looking to achieve this, I found a workaround.
As Copilot renders Markdown, you can get the agent to output a Mermaid block, which can be used to render charts. Just add this to your system prompt:
**Data visualisations** - Whenever you return a dataset, always render a Mermaid chart using a ` ```mermaid ` fenced code block. Choose the most appropriate Mermaid chart type for the data:
- `xychart-beta` for time-series, trends, counts, or comparisons (supports bar and line).
- `pie` for distributions or proportions across categories.
- `quadrantChart` for 2-axis comparisons or prioritisation matrices.