Scatter Plot Generator screenshot

Scatter Plot Generator

Plot paired values and draw their least-squares line, entirely in the browser.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Runs in this tab
No signup

What this page computes

Type the x and y values as two comma-separated lists of equal length. The page draws one point per pair on labelled axes with a grid, and adds the least-squares line y = a + bx from the same sums the regression page uses. The fitted equation is printed above the plot. The output pane holds the SVG source, which you can copy or download.

It is a plotter: no statistic, no p-value and no prediction interval. The axis padding is eight percent of each range, and a constant x or y column is refused because there is nothing to spread the points across. Mismatched list lengths are refused with both counts.

The drawing is computed in this tab from the pasted numbers, so the same pairs always produce the same picture.

The page plots paired values as points and draws the least-squares line through them, with the fitted equation in the title. It needs at least two points, and a variable that never changes is refused because there is no range to draw. The line is the same one the linear regression page tests; here it is shown so the fit can be judged by eye, and that page is where the slope test and R² live.

Plot paired values with their least-squares line. Two comma-separated lists in, an SVG scatter out.

How to use it

Type the x values as a comma-separated list and the y values the same way. The lists must be the same length, and each point is one pair read position by position. The title carries the fitted equation, so the line’s slope and intercept are readable without hovering over it.

What the fitted line is, and what it is not

The line is fitted by least squares, the same arithmetic as the regression page, and drawn between the smallest and largest x rather than extrapolated past the data. Two points determine a line exactly, so a two-point plot always fits perfectly and says nothing about whether a straight line is appropriate; the residual plot is where that question is answered.

What to Expect

Best for

  • A quick look at a pairing before fitting a model

What this tool keeps

  • Nothing leaves this tab: the arithmetic runs in the page you are reading, and a reload discards both the input and the result.

Frequently asked questions

Where do the points come from?

From two comma-separated lists of the same length, read position by position — the third x is paired with the third y. Unequal lengths are refused with both counts shown.

Does the line mean the fit is good?

Not on its own. A line is always drawn; whether it describes the data is what the residual plot and the regression page’s R² and slope test answer.

Is anything uploaded?

No. The points, the fitted line and the SVG are all built in this page, and nothing is posted to a server or stored.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.