Latenode

Generate Chart from Table Data

This automation transforms spreadsheet-like input into a visual chart. It starts with raw data, uses ChatGPT to extract labels and values into structured JSON, then creates an HTML-based Chart.js line chart.

This chart is rendered in a headless browser, and the canvas is captured as a base64-encoded PNG image. Finally, the base64 buffer is converted into a clean image. Ideal for anyone looking to turn raw or tabular data into visual reports quickly and automatically.

Updated Aug 31, 2026Est. run: 5sEst. cost: $0,01
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Convert raw table data into a polished line chart image
  • ChatGPT structures the data; JavaScript builds the Chart.js HTML
  • Headless browser renders and captures a PNG automatically
  • Fast path from spreadsheet-like input to a shareable visual report

How it works

1
Trigger

Supply raw table data

Feed spreadsheet-like rows into the scenario as the chart source.

2
AI

Structure labels and values

ChatGPT extracts labels and values into structured JSON ready for charting.

3
Logic

Assemble the Chart.js page

JavaScript builds an HTML line chart from the structured JSON.

4
Action

Render with headless browser

The headless browser opens the chart, captures the canvas as base64 PNG, and converts it into a clean image.

Setup guide

1

Connect ChatGPT

Add ChatGPT credentials so table extraction into JSON can run.

2

Review the JavaScript chart builder

Open the JavaScript node and confirm Chart.js HTML output matches the fields you expect from your tables.

3

Enable headless browser capture

Ensure the headless browser node can render the HTML and return a PNG, then test with a small dataset.

Requirements

Latenode account
ChatGPT credentials for data structuring
Access to JavaScript and headless browser nodes
Table or spreadsheet-like input to visualize

FAQ

Common questions about this template

It automates extraction, Chart.js rendering, and PNG capture so you get a visual report without building charts by hand.