Charts

Create diagrams and visualizations with the built-in chart tool

The built-in Charts tool creates chart visualizations directly in chat using Chart.js.

Supported chart types

  • bar
  • line
  • pie
  • doughnut
  • scatter
  • bubble
  • radar
  • polarArea

Tool method

builtin-create-chart accepts Chart.js-compatible parameters (type, data, optional options) and returns a chart URL that can be rendered directly in responses.

Diagrams as text (Mermaid)

Besides the Charts tool, the AI can draw diagrams in chat that are described as text (Mermaid): flowcharts, sequence diagrams, class and state diagrams, ER diagrams, pie charts, user journeys and Gantt charts for schedules with parallel and consecutive tasks. For example, ask the AI: "Draw a Gantt chart for this project."

  • The diagram appears directly in the answer. Click it to open it as an image (SVG) in a new browser tab.
  • There is no download or PNG button. Save the opened image through your browser or take a screenshot.
  • For an image file to download, the code sandbox can create a new chart from data as a PNG (using matplotlib). The Mermaid diagram itself is not exported this way.
  • Export to project planning software (for example MS Project) is not built in.
Was this page helpful?