Skip to main content
All CollectionsTemplatesBasic
Generate Graph of Simple JSON Data using Python - Workflow Template
Generate Graph of Simple JSON Data using Python - Workflow Template

Functional workflow that will data JSON data and generate a base64 encoded PNG graph of the data that was passed to the workflow.

Updated over 6 months ago

This Torq workflow template allows users to quickly generate graphs from simple JSON data. By inputting JSON data, selecting graph type and dimensions, the workflow outputs a base64 encoded PNG image of the specified graph, whether it's a line, bar, or pie chart. Easy to integrate and ideal for visual data representation needs in various applications.

Use Cases

Function

Workflow Breakdown

  1. Send JSON data, either an array or list of objects to the workflow

  2. If a line graph select a color, and if an array use the x and y labels as the keys in the data to plot.

  3. Choose the size of the plot

  4. On return of the workflow, a base64 encoded PNG image with be provided.

Vendors

Scripting

Workflow Output

PNG base64 encoded graph of the data that was passed to the workflow.

Did this answer your question?