Generate Chart
The Generate Chart block creates a chart image by sending Chart.
Generate chart images from Chart.js data
The Generate Chart block creates a chart image by sending Chart.js-compatible data to QuickChart and returning a URL pointing to the rendered image. It supports three chart types — bar, line, and pie — and accepts the chart data as a JSON object serialized as a string, along with width and height values in pixels to control the output image dimensions.
The block's primary output is a chartUrl string, which is the URL of the generated chart image. This URL can be saved to a variable using the destinationVar field, making it available for use in downstream steps such as displaying the chart in a response, embedding it in a document, or passing it to another block.
This block fits into workflows that need to visualize data dynamically — for example, generating a sales summary chart from structured data, producing a report with embedded visuals, or returning a chart image as part of an AI assistant's response. Because the chart data is passed as a string, it can be constructed or modified earlier in the workflow before being handed off to this block.
What you can build
Real-world workflows powered by the Generate Chart block.
Sales Performance Reports
Generate a bar chart from monthly sales figures and embed the image URL in an automated report sent to stakeholders.
AI Assistant Data Responses
Return a pie or bar chart image URL when a user asks an AI assistant to visualize data from a query result.
Financial Dashboard Snapshots
Create line charts from time-series financial data and include the generated image in a dashboard or email digest.
Survey Result Visualization
Convert survey response tallies into a pie chart and share the image URL in a summary document or message.
Automated Analytics Emails
Build a workflow that pulls metrics, generates a chart image, and inserts the URL into a scheduled email notification.
Data Pipeline Visual Output
At the end of a data processing workflow, render a line or bar chart to confirm trends and store the image URL for logging.
Ready to add Generate Chart to your workflow?
Get Started FreeCommon questions about Generate Chart
What are the required parameters for this block?
The block requires a chart type (bar, line, or pie), a Chart.js-compatible JSON object serialized as a string in the data field, and width and height values in pixels for the output image dimensions.
What does the block return?
The block returns a chartUrl string, which is the URL of the generated chart image produced by QuickChart.
How do I use the chart URL in later steps of my workflow?
You can specify a variable name in the destinationVar field. The block will save the chartUrl value to that variable, making it accessible to downstream blocks in the workflow.
What chart types are supported?
The block supports three chart types: bar, line, and pie.
What kinds of workflows commonly use this block?
This block is commonly used in reporting workflows, AI assistant responses that include data visualizations, automated email digests, and any workflow that needs to convert structured data into a shareable chart image.
Related capabilities
User Message
Send a message to an AI model and return the response, or echo a system message.
Generate Image
Generate an image from a text prompt using an AI model.
Generate Video
Generate a video from a text prompt using an AI model.
Text to Speech
Generate an audio file from provided text using a speech model.
Generate Music
Generate an audio file from provided instructions (text) using a music model.
Generate LipSync
Generate a lip sync video from provided audio and image.
Add Generate Chart to your workflow
Build powerful AI workflows with drag-and-drop blocks. No coding required.