XY Chart Generator from Text
Turn categories and numbers into a real chart — with axes, a range and a title. Paste Mermaid xychart-beta code — or start from the revenue example — and this free online XY chart generator draws bars, lines or both in your browser. No sign-up, and nothing you paste leaves your device.
The demo above is live — edit the code and hit Generate. The example that loads with the page is free; each Generate click uses one of your 10 free generations per day.
How it works
From categories and numbers to a chart with real axes in four steps.
List your data
Categories on the x-axis and one number per category — months and revenue, sprints and velocity.
Write it as xychart-beta code
A title line, the two axes, then bar and/or line series — or let ChatGPT or Claude write the code for you.
Pick “Mermaid diagram” and hit Generate
The visual type is pre-selected on this page. Your chart is drawn instantly in your browser — nothing is uploaded.
Download PNG
One click, no watermark — ready for reports, wikis or slides.
What goes into an XY chart
Three building blocks describe any XY chart — and all three are just text.
Title & axes
A quoted title renders on top; x-axis [jan, feb, mar] lists categories; y-axis "Revenue" 0 --> 1200 names the numeric axis and pins its range.
Data series
bar [...] and line [...] each take a comma-separated list of numbers, one per category — decimals and negatives included.
Bars & lines
Use bars alone, lines alone, or both together — the same numbers as columns and as a trend line, like the example above.
From text to XY chart, the AI-friendly way
You never have to write Mermaid by hand: give your numbers to ChatGPT or Claude and paste what it returns here — no sign-up, and everything renders locally on your device.
Give AI your numbers
Tell ChatGPT or Claude your categories and values — “revenue jan through dec: 5000, 6000, 7500…” — and ask for Mermaid xychart-beta code.
Paste the code here
Copy the xychart code it returns and drop it into the box above, skipping the fence lines around the code block.
Generate, download PNG
Hit Generate: the chart draws instantly in your browser and exports as a crisp, watermark-free PNG for reports and slides.
Private by design: your numbers never leave your browser
Charts often carry internal figures. Text2Viz renders them locally, so nothing is uploaded.
No sign-up, no account
There is nothing to create and nothing to log into. Open the page and start charting.
Rendered locally
Your chart is drawn by JavaScript running on your own device. Your numbers are never sent to our servers.
Safe for internal data
MRR curves, server load, sales pipelines — render them here without a second thought.
What people make with it
Three common ways people use this free XY chart generator.
Chart a metric over time
Months or sprints on the x-axis, the number on the y — a line shows the trend, bars show each value.
Compare categories precisely
With a pinned y-axis range, small differences between values stay honest and readable.
From AI chat to image
ChatGPT or Claude turned your table into xychart code? Paste it here and export a shareable PNG.
Frequently asked questions
Is this XY chart generator free?
How do I turn text into an XY chart?
How do I set the y-axis range?
Bar or line — which should I use?
Can AI write the xychart code for me?
Can I download the XY chart as a PNG?
More text-to-diagram tools
The same paste-and-generate flow, tuned for other visual types.
Sankey Diagram Generator
Show how budget, energy or users flow between stages with Mermaid sankey-beta code.
Block Diagram Generator
Lay out system components in a grid of blocks and arrows from Mermaid block-beta code.
Requirement Diagram Generator
Map requirements, elements and satisfies links from Mermaid requirementDiagram code.
C4 Context Diagram Generator
Draw a C4 context diagram — people, systems and relationships — from Mermaid C4Context code.
C4 Container Diagram Generator
Zoom inside a system’s containers with Mermaid C4Container syntax.
ER Diagram Maker
Entity relationship diagrams for database schemas from Mermaid erDiagram syntax.
Text to Timeline Maker
Dates and events become a clean horizontal timeline. Also see the horizontal, project and history timeline makers.