chartjuice

X Y Graph Maker: Plot X and Y Points Online

This free x y graph maker plots a point for every pair of numbers in your table, then joins them in order of x or draws a line of best fit. Replace the sample values, name the axes and download a PNG or SVG, with no signup needed.

Draw your data as
X Y graph of 12 points joined by a line, on axes titled x and y. The line rises from (1, 2) at the lower left to (12, 14) at the upper right. y x 2 4 6 8 10 12 14 0 2 4 6 8 10 12 X Y graph chartjuice.com

How to use this x y graph maker in 3 steps

  1. The Data tab in Chartjuice, with Upload file and Paste data beside a x y graph
    1

    Enter your x and y values

    Type over the sample in the table under the chart, or click Paste data or Upload file. Put the x values in one column and the y values in the next, one pair per row. Chart columns shows which column is X and which is Y.

  2. The Style tab in Chartjuice, open beside a x y graph
    2

    Name the axes

    Open the Style tab. Under Horizontal axis and Vertical axis, replace "x" and "y" in Title text with what you measured and its unit. Min and Max set where each axis starts and ends. To change how the points are drawn, pick Points, Connected or Best fit above the chart.

  3. The Download menu in Chartjuice: PNG at 1x, 2x or 4x, SVG and Copy image
    3

    Download it

    Click Download and pick PNG at 1x, 2x or 4x, or SVG. Copy image puts the graph on your clipboard for a lab report or slide.

What an x y graph shows

An x y graph has two number lines: x runs across and y runs up. Every row of your table is one point. Its x value sets how far right the point sits, and its y value sets how high. The sample graph plots 12 pairs, from (1, 2) up to (12, 14), and joins them with a line.

Put the value you choose or control on x, and the value you measure on y. Minutes of heating go on x and temperature on y. Ad spend goes on x and signups on y.

Is an xy graph the same as a scatter plot?

Yes. An x y graph, an xy graph and a scatter plot all place points by two numbers, so an xy graph maker and a scatter plot maker are the same kind of tool. This page is the plain version of the Chartjuice scatter plot maker: the same designer, opened on a bare two-column table with the points joined and no trend line. Go there for correlation and colored groups, or to the bubble chart maker to size each point by a third number.

Points, connected points or a line of best fit?

Above the chart, choose how to draw your data:

  • Points places a dot for each pair and nothing else. Use it when the order of the points means nothing, such as the height and weight of each student in a class.
  • Connected joins the points in order from the smallest x to the largest. Use it when each x follows the one before it, such as readings taken over time or a curve worked out from an equation.
  • Best fit draws one dashed straight line through the middle of all the points, to show the trend. See "Add a trend line" below.

The graph opens on Connected. Each point stays at its real x value, so if your x values are 1, 2 and 10, the gap from 2 to 10 is eight times as wide as the gap from 1 to 2. Your rows can be in any order, because the line goes by x and ignores the order of the table. If a Group column is set, each group gets its own line in its own color. The same settings are in the Style tab under Scatter options, as Connect points and Trend line, and you can turn both on at once.

The line graph maker also joins points, but it treats the x column as labels and spaces them evenly. That is right when x goes up in equal steps or names things, like Jan, Feb and Mar. When your x values are uneven numbers, use this graph so each point sits where its number says.

Graph an equation from a table of values

To graph an equation, build a table of values and plot the pairs. Take y = 2x + 1. Choose x values, work out y for each, and you get:

x y
-3 -5
-2 -3
-1 -1
0 1
1 3
2 5
3 7

Paste the two columns and the seven points fall on a straight line, with the joining line running through all of them. For a curve such as y = x², use more x values, closer together, so the joined line bends with the curve. With only a few points it turns into a row of straight pieces.

Negative values plot where they belong. The axes sit along the bottom and left edges of the graph, though, not through the origin, so you won't get a four-quadrant grid with the axes crossing at (0, 0). To add vertical gridlines, turn on Gridlines under Horizontal axis.

Add a trend line

Pick Best fit above the chart, or open the Style tab, expand Scatter options and turn on Trend line. Chartjuice draws a dashed straight line through the middle of the points. It is a different thing from the joined line: Connect points goes from each point to the next, while the trend line is the one straight line that fits all of them best. You can show both. Turn on Show R² and the legend says how closely the points follow it, from 0 to 1.

Plot the y = 2x + 1 table above and the line runs through all seven points, with R² at 1.00. Plot y = x² for x from -3 to 3 and R² drops to 0.00: the points make a clear U, but no straight line follows a U.

Read a trend line with care. One point far from the rest can tilt it, and a line that fits well still doesn't say that x causes y.

Make the points easier to read

Under Scatter options, Point size makes the dots bigger and Point shape swaps circles for squares, triangles or diamonds. Lower Opacity when points overlap, so a pile of them looks darker than a single point.

Both axes fit your data, so they may not start at zero. Set Min to 0 under Horizontal axis or Vertical axis when the graph should include the origin.

Ask AI to set it up

Click Ask AI and type something like "add a trend line and title the axes Time and Distance", or "show the points without the line". The assistant changes the same settings you would by hand, so you can adjust anything afterward. It sees your column names and a small sample of the rows, not the whole file.

Everything you need to make an x y graph

  • Upload or paste your data

    Drop in a CSV, TSV, XLSX, XLS or ODS file, or paste two columns from Excel or Google Sheets. The file is read in your browser and never uploaded. One graph takes up to 5,000 rows.

    The Paste data dialog in Chartjuice with a table pasted from a spreadsheet
  • Looks good out of the box

    Points joined by a line sit over light gridlines with both axes titled. Change the color under Colors, pick a preset palette, or save your brand colors with Pro.

    The Colors section in Chartjuice with preset palettes, open beside a x y graph
  • Design with AI

    Ask for a trend line, bigger points or new axis titles in plain English, then fix anything by hand. A free account gets 10 tries, and Pro gets 50 messages a day.

    See what the AI graph maker can do

    The Chartjuice AI assistant editing a x y graph from a plain-English request
  • Download PNG or SVG

    Download a PNG at 1x, 2x or 4x, optionally transparent, or an SVG. Free downloads carry a small, faint "chartjuice.com" in the bottom-right corner, and Pro removes it.

    A x y graph downloaded from Chartjuice as a PNG

Frequently asked questions

How do I make an x y graph?

Put your x values in one column and your y values in the next, one pair per row. Paste them into the table under the chart or upload the file. Check that Chart columns has the right column as X and as Y, then download the graph.

Which value goes on the x axis?

The one you choose or control, such as time, dose or price. The value you measure as a result goes on the y axis. If neither depends on the other, either order works.

Can I connect the points with a line?

Yes, and the graph opens that way. The points are joined in order of x, each at its real x value. Pick Points above the chart to show the dots alone, or Best fit for a straight trend line instead. The line graph maker also joins points, but it spaces the x values evenly, which suits months or equal steps.

Can I graph an equation?

Yes, from a table of values. Pick x values, work out y for each one, and paste the two columns. Chartjuice plots the pairs. It does not take an equation such as y = 2x + 1 and draw it for you.

Can Claude or ChatGPT make an x y graph?

Yes. Connect an AI assistant to Chartjuice once, then paste your x and y values and ask in plain words for a scatter plot with the points joined. It is saved to your account and opens in the editor.

Is the x y graph maker free?

Yes. Making and downloading graphs is free and needs no account. A free account saves up to 5 charts. Pro, at $12 a month or $120 a year, removes the chartjuice.com mark and saves your brand colors (see pricing).

Want the full tour? Read how Chartjuice works.

Keep your x y graphs in a free account

You can make and download an x y graph without signing up. A free account saves your graphs so you can come back and change the data.