The tutorial explains the process of making a line graph in Excel step-by-step and shows how to customize and improve it. The line graph is one of the simplest and easiest-to-make charts in Excel. However, being simple does not mean being worthless. As the great artist Leonardo da Vinci said, 'Simplicity is the greatest form of sophistication.' Line graphs are very popular in statistics and science because they show trends clearly and are easy to plot. So, let's take a look at how to make a line chart in Excel, when it is especially effective, and how it can help you in understanding complex data sets.
Excel line chart (graph) A line graph (aka line chart) is a visual that displays a series of data points connected by a straight line. It is commonly used to visually represent quantitative data over a certain time period. Typically, independent values such as time intervals are plotted on the horizontal x-axis while dependent values such as prices, sales and the like go to the vertical y-axis. Negative values, if any, are plotted below the x-axis. The line's falls and rises across the graph reveal trends in your dataset: an upward slope shows an increase in values and a downward slope indicates a decrease. When to use a line graph Line charts work well in the following situations:.
Click on line, right click, select ADD TRENDLINE, and then OK (when box appears) OR b. Click on line, Go to CHART. Then ADD TRENDLINE, and then OK (when box appears). In the pivot table, the data contains the unique value and remove the duplicate items. To make the data look visually, you need to use pivot charts. The pivot charts contain all types of charts including column, line, pie, bar, area, and scattered charts. You can use other chart templates as well to make your excel more understandable.
Good visualization of trends and changes. Of all the variety of Excel charts, a line graph is best suited for showing how different things change over time. Easy to create and read. If you are looking for a simple and intuitively clear way to visualize large and complex data, a line graph is the right choice. Show relationships between multiple data sets. A multiple line graph can help you reveal relationships between two or more variables.
When not to use a line graph There are a few cases in which a line graph is not suitable:. Not suited for large data sets. Line graphs are best to be used for small data sets under 50 values. More values would make your chart more difficult to read. Best for continuous data. If you have discrete data in separate columns, use a.
Not suited for percentages and proportions. To display data as a percentage of the whole, you'd better use a or a stacked column. Not recommended for schedules. While line charts are great to show trends over a certain period, a visual view of projects scheduled over time is better done by a. How to make a line graph in Excel To create a line graph in Excel 2016, 2013, 2010 and earlier versions, please follow these steps:. Set up your data A line graph requires two axes, so your table should contain at least two columns: the time intervals in the leftmost column and the dependent values in the right column(s).
In this example, we are going to do a single line graph, so our sample data set has the following two columns:. Select the data to be included in the chart In most situations, it is sufficient to select just one cell for Excel to pick the whole table automatically. If you'd like to plot only part of your data, select that part and be sure to include the column headers in the selection. Insert a line graph With the source data selected, go to the Insert tab Charts group, click the Insert Line or Area Chart icon and choose one of the available.
As you hover the mouse pointer over a chart template, Excel will show you a description of that chart as well as its preview. To inset the chosen chart type in your worksheet, simply click its template. In the screenshot below, we are inserting the 2-D Line graph: Basically, your Excel line graph is ready, and you can stop at this point unless you want to do some to make it look more stylish and attractive. How to graph multiple lines in Excel To draw a multiple line graph, perform the same steps as for creating a. However, your table must contain at least 3 columns of data: time intervals in the left column and observations (numeric values) in the right columns. Each data series will be plotted individually. With the source data highlighted, go to the Insert tab, click the Insert Line or Area Chart icon, and then click 2-D Line or another of your choosing: A multiple line graph is immediately inserted in your worksheet, and you can now compare the sales trends for different years to one another.
When creating a multiple line chart, try to limit the number of lines to 3-4 because more lines would make your graph look cluttered and hard to read. Excel line chart types In Microsoft Excel, the following types of the line graph are available: Line. The classic 2-D line chart demonstrated above. Depending on the number of columns in your data set, Excel draws a.
Stacked Line. It is designed to show how parts of a whole change over time. The lines in this graph are cumulative, meaning that each additional data series is added to the first, so the top line is the total of all the lines below it. Therefore, the lines never cross. 100% Stacked Line. It is similar to a stacked line chart, with the difference that the y-axis shows percentages rather than absolute values.
The top line always represents a total of 100% and runs straight across the top of the chart. This type is typically used to visualize a part-to-whole contribution over time. Line with Markers. The marked version of the line graph with indicators at each data point. The marked versions of Stacked Line and 100% Stacked Line graphs are also available.
A three-dimensional variation of the basic line graph. How to customize and improve an Excel line chart The default line chart created by Excel already looks nice, but there is always room for improvement. To give your graph a unique and professional look, it makes sense to begin with the common customizations such as:. Adding, changing or formatting the. Moving or hiding the.
Changing the or choosing another number format for. Showing or hiding the. Changing the chart.
In general, you can adjust any element of your graph as explained in. Additionally, you can do a few customizations specific to a line graph as explained below. How to show and hide lines in the chart While making a graph with multiple lines, you may not want to display all the lines at a time. So, you can use one of the following methods to hide or remove the irrelevant lines:.
Hide columns. In your worksheet, right-click a column you don't want to plot in the graph, and click Hide. Once the column is hidden, the corresponding line will disappear from the graph straight away. As soon as you, the line will be right back. Hide lines in the chart. If you don't want to mangle the source data, click the Chart Filters button on the right side of the graph, uncheck the data series you want to hide, and click Apply:.
Delete a line. To permanently delete a certain line from the graph, right-click it, and select Delete from the context menu. Dynamic line graph with check boxes. To show and hide lines on the fly, you can insert a check box for each line, and make your graph respond to selecting and clearing the check boxes. The detailed instructions to create such a graph can be found. Change data markers in a line graph When creating a line chart with markers, Excel uses the default Circle marker type, which in my humble opinion is the best choice.
If this marker option does not fit well with the design of your graph, you are free to choose another one:. In your graph, double-click on the line. This will select the line and open the Format Data Series pane on the right side of the Excel window. On the Format Data Series pane, switch to the Fill & Line tab, click Marker, expand Marker Options, select the Built-in radio button, and choose the desired marker type in the Type box. Optionally, make the markers larger or smaller by using the Size box. Change color and appearance of a line If the default line colors do not look quite attractive to you, here's how you can change them:.
Double-click on the line you want to re-color. On the Format Data Series pane, switch to the Fill & Line tab, click on the Color drop box, and choose a new color for the line. If the standard color palette is not sufficient for your needs, click More Colors and then pick any RGB color you want. On this pane, you can also change the line type, transparency, dash type, arrow type, and more. For example, to use a dashed line in your graph, click the Dash type drop-down box and choose the pattern you want. Even more formatting options are available on the Chart Tools tabs ( Design and Format) that activate when you select the chart or its element.
Smooth angles of the line chart By default, the line graph in Excel is drawn with angles, which works fine most of the time. However, if the standard line chart is not beautiful enough for your presentation or printed materials, there is an easy way to smooth the angles of the line. Here's what you do:. Double-click the line you want to smooth. On the Format Data Series pane, switch to the Fill & Line tab, and select the Smoothed line check box.
In case of a multiple line chart, perform the above steps for each line individually. Fade out the gridlines The standard Excel line graph includes the horizontal gridlines that make it easier to read the values for data points. However, they do not necessarily need to be so prominently displayed.
To make the gridlines less obtrusive, all you have to do is change their transparency. Here's how:. In your chart, double-click on any gridline. The blue dots will appear at the end of each gridline, indicating that all the gridlines are selected (please see the screenshot below). On the Fill & Line tab of the Format Major Gridlines pane, set the transparency level to 50% - 80%. The gridlines are faded into the background of the chart where they belong: Create an individual line graph for each row (sparklines) To visualize trends in a series of data located in rows, you can create a number of very small line charts that reside inside a single cell.
This can be done by using the feature (please follow the above link for the detailed instructions). The result will look something similar to this: That's how you plot a line graph in Excel. I thank you for reading and hope to see you on our blog next week! You may also be interested in:.
If you want to follow along with this tutorial, download the example spreadsheet. Steps to Create a Line Chart To create a line chart in Excel 2016, you will need to do the following steps:. Highlight the data that you would like to use for the line chart. In this example, we have selected the range A1:D7.
Select the Insert tab in the toolbar at the top of the screen. Click on the Line Chart button in the Charts group and then select a chart from the drop down menu. In this example, we have selected the fourth line chart (called Line with Markers) in the 2-D Line section. TIP: As you hover over each choice in the drop down menu, it will show you a preview of your data in the highlighted chart format. Now you will see the line chart appear in your spreadsheet showing the trend for 3 products (ie: Desktops, Laptops and Tablets). The blue series of data points represents the trend for Desktops, the orange series of data points represents Laptops and the gray series of data points represents Tablets. The axis values for each product are displayed on the left side of the graph.
Finally, let's update the title for the line chart. To change the title, click on 'Chart Title' at the top of the graph object. You should see the title become editable.
Enter the text that you would like to see as the title. In this tutorial, we have entered 'Product Trends by Month' as the title for the line chart. Congratulations, you have finished creating your first line chart in Excel 2016!