Aspect ratio calculator / XY Chart Maker

XY Chart Maker

Paste numbers, pick a shape, download the chart. There is an animated ASCII style too.

This tool needs JavaScript.

How to use it

  1. Put your numbers in the box, one row per point. The first value in a row is x, the next is y. Add more values to a row for more lines.
  2. Add a first row of words if you want labels: the first word names the x axis, the others name the lines.
  3. Pick a style, a type and a shape. The shape is the aspect ratio of the picture: 16:9 for slides and video, 4:3 or 3:2 for documents, 1:1 or 4:5 for social posts, 9:16 for stories.
  4. Download the PNG. The width you type is the real pixel width of the file.

You can copy cells straight from a spreadsheet and paste them in. Commas, tabs, semicolons and spaces all work as separators.

The ASCII style

Choose ASCII text and the chart is drawn with characters: | and - for the axes, * o + for the points and / \ for the lines between them. Press Play the drawing to watch it being written from left to right. Copy as text gives the chart as plain text for a README file, a code comment, a terminal or a chat message. Show it in a fixed-width font, or the columns will not line up.

Draw a picture with x and y

A drawing is only a list of points joined in order. Choose the type Drawing: join points in the order given and the points are joined exactly as you wrote them, without being sorted. An empty line lifts the pen and starts a new stroke. Repeat the first point at the end of a stroke to close a shape. Keep Same scale on both axes ticked, or circles turn into ovals.

Try Load an example → A cat: 330 points in 36 strokes, traced from a photo of the site owner’s cat, the same long-haired grey tabby that the 3D cat is modelled on. Press Play the drawing to watch the pen go round. You can make your own the same way: put graph paper or a grid over a picture, read off the corners and type them in.

Line or scatter?

TypeUse it whenExample
Line with pointsx has an order and you want to show a trendScreen width for each diagonal size
Line onlyThere are many points and the dots get in the wayA measurement taken every second
Points only (scatter)You want to see whether two things move togetherHeight and weight of many people

The sample numbers are the width and height of a 16:9 screen for each diagonal size, the same numbers as on the TV size calculator.

Questions

What is an XY chart?

A chart where every point has an x value and a y value, both numbers. Joining the points gives a line chart; leaving them separate gives a scatter chart.

How many lines can I draw?

Up to six. Put the extra y values in the same row, after the first one.

Can I paste from Excel or Google Sheets?

Yes. Copy the cells and paste them into the box. A header row is used for the labels.

Are my numbers uploaded?

No. The chart is drawn by your browser on your device.

Can I draw a picture with coordinates?

Yes. Choose the Drawing type. Points are joined in the order you write them, and an empty line starts a new stroke. The cat example shows how.

Can I get the chart as text?

Yes. Choose the ASCII text style and press Copy as text.

Related tools and guides