XY Graph Maker
Plot multiple X-Y data sets with trendlines, custom colors, and a clean Cartesian layout - free, fast, and entirely in your browser.
Export Graph
XY Graph Maker - Plot Two Variables and See the Relationship
An XY graph - also called a scatter plot, scatter diagram, or Cartesian graph - is the simplest, most powerful way to show how two numerical variables relate to each other. Each data point lives at its (X, Y) coordinate, and patterns in the cloud of points reveal correlations, clusters, and outliers that no spreadsheet table will ever show you.
This free online XY graph maker lets you plot up to ten data sets on the same axes, each in its own custom color, with optional linear regression trendlines drawn through the points. Add, duplicate, hide, or delete data sets on the fly. Switch between comma and space separators to match your data. Download a clean PNG, JPEG, or SVG for slides, papers, and reports - no signup, no upload, nothing leaves your browser.
The default palette is a vibrant, modern set of colors picked specifically to stay distinct from each other and pop on a white background, so even a quick chart looks intentional.
Where XY Graphs Get Used in the Real World
XY plots are the universal "is X related to Y?" chart. They show up everywhere people deal with paired numerical data:
Science & Engineering
Plot experimental measurements - temperature vs. time, voltage vs. current, dose vs. response. The XY graph is the default visualization for any controlled experiment.
Education & Math
Students plot functions and data points to learn coordinate geometry, linear regression, and correlation. The trendline overlay makes it especially useful for stats classes.
Business Analysis
Marketing spend vs. revenue, hours worked vs. output, price vs. units sold. Anytime you suspect two business metrics are linked, an XY graph either confirms it or kills the theory.
Sports & Performance
Compare training load to recovery time, heart rate to pace, age to personal best. Coaches use XY plots to spot the inflection points where performance breaks down.
Quality Control
Plot a control variable on X and a defect rate on Y. The pattern reveals whether process tweaks are actually moving the needle - or just adding noise.
Research & Statistics
Correlation studies, A/B test outcomes, regression diagnostics. The XY plot with a trendline is the workhorse of applied statistics.
How Trendlines Work (Quick Explainer)
Toggle the trendline switch on any data set and the tool fits a straight line of best fit through your points using simple linear regression. The line shows the overall direction of the relationship - upward slope means positive correlation, downward means negative, and a roughly flat line means there's no clear relationship.
Reading a trendline without overinterpreting it
- Slope tells direction. Steep up = stronger positive relationship. Flat = no real link. Steep down = inverse relationship.
- Watch the scatter around the line. Tightly clustered points mean the trend is reliable. A wide cloud means the relationship is weak even if the slope looks dramatic.
- One trendline per data set. Each visible series gets its own regression line in the matching color, so you can compare slopes directly.
- It's linear, not magical.If the underlying relationship is curved (exponential, logarithmic), a straight trendline will look misleading. Plot the points first; if they bend, a linear fit isn't the right model.
Tips for a Better XY Graph
- Make sure X and Y have the same number of points. Mismatched lengths get truncated to the shortest list. The pair counter at the top of each data set tells you exactly how many points will plot.
- Label both axes with units."Time (s)" or "Revenue ($)" tells your reader what they're looking at without forcing them to guess from the title.
- Pick distinct, vibrant colors per series. The default palette is built to stay distinguishable on screen and in print. Avoid two near-identical hues for different series.
- Use the visibility toggle while exploring.Hide noisy series temporarily to see what the rest of the chart actually says, then bring them back when you're ready to share.
- Start with raw points, then add trendlines.The shape of the cloud tells you whether a linear fit makes sense. Don't draw a line through points that are clearly curved.
- Export as SVG for print. Vector output stays crisp at any zoom, which matters for posters, papers, and presentation slides.
XY Graph vs. Other Chart Types
XY graphs are the right pick for paired numerical data. For other shapes of data, here's the cheat sheet:
| Chart Type | Best For | When to Avoid |
|---|---|---|
| XY Graph (Scatter) | Paired numerical data, correlation analysis | Categories with values - use a bar chart |
| Line Graph | Trends over an ordered X (usually time) | Unordered or non-numeric X axis |
| Bubble Chart | Three numerical dimensions per point | Only two variables - keep it simple |
| Bar Chart | One number per category | Continuous numeric X axis |
| Histogram | Frequency distribution of one variable | When you need to see two variables together |
Frequently Asked Questions About XY Graphs
What is an XY graph?+
An XY graph - also called a scatter plot, scatter diagram, or Cartesian graph - plots paired numerical data with one variable on the horizontal X-axis and another on the vertical Y-axis. Each data point appears at its (X, Y) coordinate, letting you see correlations, clusters, and outliers at a glance. It's the standard way to show how two numerical variables relate to each other.
How do I create an XY graph using this tool?+
Type or paste your X values and Y values into the fields for each data set, separated by commas (or switch the separator to spaces if your numbers contain commas already). The chart updates live as you type. Add more data sets with the "Add Data Set" button, customize colors and names, toggle trendlines, then download in your preferred format.
Can I plot multiple data series at once?+
Yes. The tool supports up to 10 data sets on the same axes, each with its own color and optional trendline. You can also temporarily hide a data set with the eye icon if you want to focus on the others without losing the data.
How are the trendlines calculated?+
Each trendline is a linear regression - a straight line of best fit through the points, calculated using the standard least-squares method. It minimizes the squared distance from the line to every point in the data set. Two endpoints are computed at the smallest and largest X values, then the line is drawn between them.
Is my data private?+
Yes. Everything runs in your browser. Your numbers are never uploaded to any server, never logged, and never stored. Close the tab and the data is gone. That makes the tool safe for sensitive research data, financial figures, or anything you wouldn't want sent across the internet.
What file formats can I download?+
PNG, JPEG, JPG, and SVG. PNG is best for slides and the web. JPEG works for compressed sharing. SVG is a vector format that stays sharp at any size - use it for printed reports, posters, or anywhere the chart might get resized.
What's the difference between an XY graph and a line graph?+
A line graph connects ordered points (usually a time series) with line segments to show a trend. An XY graph plots unconnected points to show the relationship between two variables, regardless of order. If your X values are sequential (months, days, sample numbers), you probably want a line graph. If your X is just another measurement, an XY graph is the right pick.
How many data points should I have?+
For a meaningful XY graph, aim for at least 10 - 15 points per data set. Below that, patterns can be misleading - any noise looks like a trend. With 30+ points, correlations become reliable. The tool itself has no upper limit, but past a few hundred points the chart starts feeling crowded; consider reducing the marker size or splitting into multiple charts.
Do I need to sign up or pay to use this tool?+
No. The XY graph maker is completely free, no account required, no watermark on downloads, and no usage limits. Build as many graphs as you need.
Explore More Chart Tools
XY graphs have been a staple of science, math, and analytics since René Descartes invented the coordinate system. This free XY graph maker gives you everything you need to build one in your browser - vibrant default colors, dynamic series management, automatic linear-regression trendlines, comma or space separated input, and clean exports in PNG, JPEG, and SVG. No installs, no signups, and your data never leaves your machine.