How to Create a Plot Graph in Excel
In this article
A plot graph, often called a line chart or scatter plot, turns spreadsheet data into visual trends, making it easy to spot patterns over time or the relationship between two variables. To do this, you simply select your data, open the "Insert" tab, click "Insert Line or Area Chart," and choose the style that matches your data type. While Excel can create these automatically, formatting the chart to make the data clear and professional requires a few specific steps.
What You'll Need
- A computer with Microsoft Excel installed (Excel for Windows or Mac works the same way for most charting functions, though menu labels may vary slightly).
- A dataset organized with clear headers in the first row.
- A basic understanding of which data types go on the X and Y axes (time on the X-axis is standard for most plot graphs).
Step-by-Step
- Organize your data: For a standard plot graph, your data should be in two columns. The first column (or row) contains the categories or time periods (e.g., months, years, or product names), and the second column contains the numerical values you want to plot. Ensure your headers, like "Month" and "Sales," are at the very top of the columns so Excel recognizes them.
- Select the data: Click and drag your mouse to highlight the entire block of data, including the headers. Do not include any empty rows or columns outside of your data range, as this can confuse the chart generation.
- Insert the chart: Click on the "Insert" tab at the top of the Excel ribbon. In the "Charts" section, look for the icon labeled "Insert Line or Area Chart." Hovering over this icon will show a small arrow on the right side. Click that arrow to reveal the chart types.
- Choose the right type: Excel offers several variations of plot graphs. The most common is the Line chart, which connects data points with lines. If your data represents a continuous relationship rather than specific time points, a Scatter chart (often called an XY chart) is usually the better choice. Click on the specific style you want from the menu; a small preview of your chart will appear on the sheet.
- Position the chart: Once you select a style, the chart will appear on the same worksheet. It will be placed in the center of the screen, often covering some of your data. Hover your mouse over the edge of the chart until the cursor changes to a four-way arrow, then click and drag to move it to a blank area of the sheet.
- Format the axes: Double-click on the numbers on the X-axis (the bottom labels) to open the "Format Axis" pane on the right side. Here, you can change the scale (e.g., from 1 to 12 for months), set the minimum and maximum values, or adjust the number of decimal places. Do the same for the Y-axis (the vertical numbers) to ensure your scale makes sense for the data range.
- Add a title and labels: Click once on the chart to select it. You will see a small "Chart Title" box at the top. Click inside it and type a descriptive name, such as "Monthly Sales Revenue." You can also click on the X and Y axis labels to rename them to "Time Period" and "Value." These labels help anyone looking at the graph understand what the data represents without reading the original spreadsheet.
- Adjust the style: Excel provides various styles to make the graph look professional. Click on the "Chart Design" tab that appears when the chart is selected. In the "Chart Styles" section, click the small arrow to scroll through the options. You can also use the "Format" tab to change the color of the lines, the background, or the font style.
Common Mistakes
One of the most common mistakes is trying to plot data that is not organized correctly. If you have a single row of numbers without headers, or if your columns are not aligned vertically, Excel will often create a graph with multiple lines or incorrect formatting. Always ensure your data is a clean, rectangular block with headers at the top. Another frequent error is choosing the wrong chart type; using a line chart for categorical data that has no inherent order (like "Red, Blue, Green") can be misleading, whereas a scatter plot is better suited for showing the correlation between two continuous variables.
Tips
To make your plot graph more effective, consider removing the gridlines. Gridlines can clutter the visual, so unchecking the "Gridlines" option under the "Chart Layouts" or by right-clicking and selecting "Format Gridlines" can make the data points stand out more clearly. If you have a large dataset, you can hide the data points (the small circles or squares) by right-clicking on a line in the chart and selecting "Format Data Series.” In the options, you can choose "No Markers" to show only the trend line, which is useful for spotting long-term trends without being distracted by daily fluctuation.
Troubleshooting
If your chart does not appear or looks incorrect, the first thing to check is the data range. Ensure that you did not accidentally include an empty column or row in your selection. If the chart appears but the labels are missing, verify that the headers in your spreadsheet are directly above the data and are not merged with other cells. Another issue is when the chart does not update when you change a number in the spreadsheet. This usually happens if the chart is referencing a specific range rather than the data itself. To fix this, right-click the chart and select "Select Data.” If the chart is not updating automatically, check that "Chart Filters” are not hiding specific series or points.
Frequently Asked Questions
Can I create a plot graph with more than two sets of data?
Yes, you can plot multiple series of data on the same graph. Simply include all the data columns (with headers) in your initial selection before inserting the chart. Excel will create a separate line or marker for each set of data, making it easy to compare different variables side-by-side.
How do I change the order of the data on the X-axis?
To reorder your data, you don't need to change the chart; you just need to rearrange your spreadsheet. Select the entire column containing the X-axis labels and cut it, then paste it above or below your data columns to change the sequence. Refresh the chart if necessary.
Why are my dates not showing up correctly on the X-axis?
Excel sometimes treats dates as simple numbers rather than calendar dates. To fix this, double-click the date labels on the X-axis, go to the "Number" category in the sidebar, and select "Date.” This will format the numbers so that they display as readable dates.
Can I move the chart to a separate sheet?
Yes, you can detach the chart from the data sheet. Right-click anywhere on the chart and select "Move Chart.” In the dialog box, choose "New Sheet" and give it a name, such as "Sales Chart." This creates a standalone page dedicated solely to the visualization.
How do I add a horizontal line to show a target or average?
You can add a reference line by creating a new series with a single value. Enter your target or average number in a blank cell, copy it, and then double-click on the chart to open the "Select Data Source” menu. Click "Add,” label the new series (e.g., "Target"), and paste the value. Then, format this new line to be a straight, horizontal line with no markers.