Graph Generator
The graph generator plots x, y pairs as a line graph with a title and labelled axes. Type one pair per line, such as 3,5, and download the result as a PNG image.
Sources: NIST/SEMATECH e-Handbook Updated
Enter data points (x,y format, one per line):
How to make a line graph from data points
- Type a title and the two axis labels.
- Enter one x, y pair per line, separated by a comma, such as 0,0 then 1,2 then 2,3. Put the pairs in order of x.
- Press Generate Graph to draw it, then Export as PNG to save it.
The sample data, (0, 0), (1, 2), (2, 3), (3, 5), (4, 4) and (5, 7), draws the graph above. The rise from (0, 0) to (5, 7) is 7 over 5, a slope of 1.4; the slope calculator works it out with steps.
How the axes are scaled
The tool is a plain line-and-point plotter on an HTML canvas. It finds the smallest and largest x and y values, then pads each range by 10% so points near the edge do not sit on the axis.
For the sample data the raw ranges are 0 to 5 and 0 to 7. After the padding the canvas spans about −0.5 to 5.5 across and −0.7 to 7.7 up, which is why the outermost points sit slightly inside the grid.
Why the order of the points matters
Points are joined in the order they appear in the box, not sorted by x. Data typed out of order draws crossing or zig-zag lines.
If your data came sorted by something else, such as a date column, sort it by x first. A line through points in time order is what the NIST handbook calls a run sequence plot.
What counts as valid input
Each line needs exactly one comma between two numbers, like 3,5. Lines that do not give two numbers, such as blank lines, extra commas or text, are skipped without an error. The graph needs at least two valid points before it draws.
Exporting and choosing the right chart
Export as PNG saves the canvas exactly as drawn, named after your title with special characters removed. Changes made after exporting are not in the saved file.
A line graph suits values that follow each other, such as a quantity over time.
For two measured variables, the scatter plot and a fitted line from the linear regression calculator say more about the relationship. For the centre and spread of the y-values, use the standard deviation calculator. More data tools are on the statistics calculators page.
Graph Generator: FAQ
Can it draw a scatter plot without lines?
No, it always joins the points in order. For a scatter of unrelated points with a best-fit line, use the linear regression calculator, which draws the points and the fitted line.
Can I plot several series?
No. It draws one series of x, y pairs per graph.
Does it store my data?
No. The graph is drawn on a canvas in your browser, and nothing is sent anywhere.
Sources
- NIST/SEMATECH e-Handbook of Statistical Methods: Scatter Plot — what an x, y plot shows and how to read it (checked October 16, 2026)
- NIST/SEMATECH e-Handbook of Statistical Methods: Run Sequence Plot — joining values in order to show a trend (checked October 16, 2026)