Excel Scatter Graph Multiple Series
In this article
You can plot multiple data series on an Excel scatter chart by entering each series into adjacent columns, selecting the entire data range, and inserting the scatter chart from the Charts group on the Insert tab. This method creates a single chart where each series is represented by a different color and shape, allowing for direct visual comparison of distinct datasets.
What You'll Need
- Microsoft Excel: The software application capable of handling the data and rendering the chart. The steps below apply to the most common versions of Excel for Windows and macOS, though minor menu labels may differ.
- Organized Data: Your data must be arranged in a table format. The first row should contain the labels for the x-axis (horizontal) and y-axis (vertical).
- Two or More Datasets: You need at least two columns of numerical data to create multiple series.
Step-by-Step
- Prepare Your Data Table: Open your workbook and enter your data into a contiguous block of cells. The first column (Column A) should contain the x-axis values (the independent variable). The subsequent columns (Columns B, C, D, etc.) should contain the y-axis values (the dependent variables) for each series. Ensure that the labels for these columns are placed in the first row of the spreadsheet (e.g., A1, B1, C1). Excel uses these labels to automatically generate the legend for your chart.
- Select the Data Range: Click and drag your mouse to highlight the entire block of data you wish to plot. This includes the headers (labels) in the first row and all the numerical values in the subsequent rows. Do not include any empty rows between your data sets, as this can confuse the charting engine.
- Insert the Scatter Chart: Navigate to the top menu bar and click on the Insert tab. In the Charts section, look for the Insert Scatter (X, Y) or Bubble Chart button (it usually looks like a small dot and a cross). Click this button to open the dropdown menu.
- Choose the Chart Type: In the dropdown menu, select the scatter with smooth lines or scatter with straight lines option. The default option is usually Scatter with Straight Lines and Markers. This is generally the best choice for comparing multiple trends, as it clearly shows the data points (markers) and the trend lines connecting them.
- Verify the Legend: Once the chart is created, look at the right side of the chart. You should see a legend box indicating the names of your series (e.g., "Series 1", "Series 2", etc.). If these names are not the headers you typed in the first row, double-check your data selection in step 2. The chart relies on the top row of the selected range to identify the series names.
- Customize the Chart: With the chart selected, a new set of Chart Design and Format tabs will appear on the ribbon. You can use these tabs to change the colors of the markers, add a title, or adjust the axis scales. To change the color of a specific series, click on the markers for that series (you may need to click twice if clicking once selects the whole chart), go to the Format tab, and choose a new fill color.
Common Mistakes
Creating a scatter chart with multiple series is straightforward, but errors often arise from data layout or selection issues. Understanding these common pitfalls will save you time in troubleshooting.
- Incorrect Data Layout: The most frequent mistake is entering data where the x-values are in multiple columns or the y-values are in a single column. A scatter chart plots x-values against y-values. If you have multiple series, each series must have its own dedicated column for y-values. If you try to plot data where every cell in the first column is a unique x-value for every row, Excel may treat the first column as the legend or fail to recognize the series structure.
- Including Non-Data Rows: If your data table contains blank rows between datasets, Excel may interpret these breaks as indicating the end of one chart and the start of another, or it may simply ignore the data in the blank rows. Always ensure your data is a single, contiguous block without internal gaps.
- Wrong Chart Type: Sometimes users select a Line chart instead of a Scatter chart. A Line chart connects data points with lines and assumes the x-axis is a series of categories (like months or names). A Scatter chart plots raw numerical data on both axes. If you choose a Line chart, your x-axis will likely be misinterpreted as labels, and the data will not plot correctly.
- Ignoring the Legend: If the legend does not appear or is confusing, it is often because the first row of the selected data was not included in the selection. The legend is generated from the text in the top row of the selected range. If you only select the numbers, Excel will default to generic names like "Series 1" and "Series 2".
Tips
These practical tips will help you create more effective and professional-looking scatter charts.
- Use Meaningful Headers: Always type descriptive names in the first row of your data columns. Instead of "Column B," use "Sales 2023" or "Temperature." Excel uses these headers as the entries in the chart legend, making your chart much easier to understand for anyone viewing it.
- Check Axis Scales: When comparing multiple series, it is crucial that the scales on the x and y axes are identical. If one series uses a range of 0 to 10 and another uses 0 to 100, the second series will appear flat and the differences between them will be invisible. You can force the same axis scale by right-clicking on an axis and selecting Format Axis, then adjusting the minimum and maximum bounds to match your data range.
- Format Markers: To make it easier to distinguish between series, you can change the shape or style of the markers. For example, you might use circles for one series and squares for another. To do this, click on a specific series in the chart, right-click, and select Format Data Series. In the options, you can change the marker style and size.
- Add Trendlines: If you want to visualize the trend of each series, you can add a trendline. Right-click on a series in the chart, select Add Trendline, and choose the type of regression (linear, exponential, etc.). You can also display the equation of the line on the chart for further analysis.
- Separate Worksheets: If your data is very large or complex, consider keeping the raw data on one worksheet and creating a separate, small summary table on another worksheet that simply lists the headers and the first few data points. Selecting this summary table can sometimes result in a cleaner chart, especially if you are only interested in a subset of the data.
Troubleshooting
If your chart does not look as expected, follow these steps to identify and fix the problem.
If the chart shows only one line or the data is not plotting correctly:
- Check Data Types: Ensure that the cells containing your numbers are formatted as numbers. Sometimes, numbers are entered as text (e.g., with a leading apostrophe or imported from a text file). If a cell is formatted as text, Excel will ignore it when creating a chart. You can verify this by looking at the number format in the home tab or using the Text to Columns feature to convert text to numbers.
- Verify Selection: Go back to your spreadsheet and ensure you selected the entire range, including the headers. If you missed a few cells, the chart may only plot the data you selected.
- Reset the Chart: If the chart is completely wrong, it is often easiest to delete it (select the chart and press Delete) and try again, carefully following the selection steps.
If the legend is missing or the series names are generic:
- Include Headers: The most common cause is that the first row of the selected range was not included. Re-select the data, ensuring that the top row (with your labels) is part of the highlight.
- Check for Hidden Rows: Sometimes hidden rows can cause issues with the chart update. Unhide all rows in your data range and try updating the chart again.
- Manual Legend Entry: If the automatic legend is still not working, you can create a legend manually. Click on the chart to select it, go to the Chart Design tab, and choose Add Chart Element > Legend. You can then position it and edit the text within the legend box.
If the points are overlapping and hard to see:
- Adjust Marker Size: Increase the size of the markers so that they are not perfectly on top of each other. Right-click on a series, select Format Data Series, and use the marker options to increase the size.
- Change Chart Type: If the overlap is severe, you might consider using a scatter chart with smooth lines instead of markers. This connects the dots but does not place a filled shape on every single point.
- Use a Secondary Axis: If the series have vastly different values, you might need a secondary y-axis. However, this is more commonly used for Line charts. For scatter charts, it is usually better to rescale the data or use different marker shapes to differentiate the series.
Frequently Asked Questions
Can I add a third series to an existing scatter chart?
Yes, you can add more data to an existing chart. Simply add a new column to your data table with the y-values for the new series. Then, click on the chart to select it, go to the Design tab, and choose Select Data. In the dialog box, click Add to include the new range of data, which will automatically incorporate the new series into the chart.
Why are my X-axis labels not showing up?
This usually happens because the data is not in the correct format for the x-axis. In a scatter chart, the x-axis is a numerical value. If you are trying to plot dates or text labels on the x-axis, Excel will not display them correctly. You must use numerical data for the x-axis. If you need to plot dates, ensure they are formatted as dates in the spreadsheet.
How do I remove one of the lines from the chart?
To remove a series, click on the chart to select it, go to the Design tab, and choose Select Data. In the left-hand column of the dialog box, you will see a list of the series. Select the series you want to remove and click Remove. The chart will update automatically.
Can I change the color of the lines after I create the chart?
Absolutely. Click on the specific series line or markers you want to change. This will select only that series. Go to the Format tab that appears in the ribbon and use the Shape Fill or Shape Outline options to change the color to whatever you prefer.
What is the difference between a scatter chart and a line chart?
The primary difference lies in how the x-axis is treated. A scatter chart treats the x-axis as a numerical value, allowing for the plotting of mathematical correlations. A line chart treats the x-axis as a category (like a timeline or labels) and connects the points with a line. Scatter charts are best for showing the relationship between two numerical variables, while line charts are best for showing trends over time.