How to Create a Line Chart in Google Sheets

In this tutorial, we’ll go through the simple steps of creating a Line chart in Google Sheets—a useful tool for visualizing data.

A Line chart proves valuable for comparing multiple continuous data sets, making it ideal for illustrating changes over time. The chart comprises horizontal (x) and vertical (y) axes, connecting a series of data points with lines.

Below, I provide detailed steps to guide you through the creation of a Line graph in Google Sheets. For the purpose of this demonstration, let’s consider a sample cricket match score.

I will illustrate the creation of a Line chart depicting the progress of a 50-over-limited cricket match (one-day cricket match). You don’t need specific knowledge about the match; simply use the sample data provided.

In the cricket match, Teams A and B competed, and their progress—positioned at every five overs—is depicted in the ensuing graph.

To begin, open a new sheet by clicking https://sheets.new/ and input the sample data provided below in the range B2:D12.

OversTeam ATeam B
53020
105045
158070
20105100
25140120
30165160
35190195
40220200
45240220
50240246

The first column contains the X-axis labels, and the subsequent columns represent Series A and B. This is the structure, although you have the flexibility to use one or more series.

Steps to Create a Line Chart in Google Sheets

There are two ways to create a Line chart: starting by selecting the chart source range or without selecting the chart source range. We’ll begin with the former option, which is quicker and easier.

Creating a Line Chart Directly from the Source Data

  1. First, select the data under “Overs” by choosing cells B2:B12. From the “Format” menu, select “Number,” and then choose “Plain Text.”
  2. Next, select the entire data range B2:D12. Go to the “Insert” menu and click on “Chart.” This action will promptly open the Chart Editor panel (dialog box) with a default graph.
  3. Click on the tab labeled “Setup.”
  4. Under “Chart type,” select either “Line chart” or “Smooth line chart.”
Setup of the Chart Editor while creating a Line Chart in Google Sheets.

Following these steps, you can successfully create a Line graph in Google Sheets.

How to Manually Enter Series and X-axis for a Line Chart in Google Sheets?

You can create a Line chart with or without selecting the source data. In the example provided above, we pre-selected the data. If you haven’t done so, follow the steps below.

  1. Click on any blank cell, for instance, cell F2.
  2. Go to Insert > Chart.
  3. Under the “Setup” tab, choose “Line chart.”
  4. In the “Data range” field, replace F2 with B2:D12.

The X-axis and series will be added automatically because our data is already structured. If not, follow these additional steps.

  1. Click “Add X-axis” and select “Overs.”
  2. Click “Add Series” and choose “Team A.” Similarly add “Team B.”

By following these steps, you can manually enter the series and X-axis for your Line chart in Google Sheets.

Customization (Optional)

Customizing a Line chart is remarkably straightforward, and you can achieve this by exploring the options under the chart editor’s “Customize” tab. Here are the essential customizations:

Screenshot illustrating the customization options for a Line Chart in Google Sheets.
  1. Opening the Chart Editor Panel:
    If the chart editor panel is closed, double-click on the chart to open it, and then click on the “Customize” tab.
  2. Adding a Title:
    • Click on ‘Chart and axis titles’ > ‘Chart title.’
    • Provide a title; for example, I’m using “World Cup Cricket 2011: Team A vs. Team B – Venue: B’lore.”
  3. Labeling Axes:
    • For the horizontal axis (representing overs), go to ‘Chart and axis titles’ > ‘Horizontal axis title’ and label it as “Overs.”
    • For the vertical axis, navigate to ‘Chart and axis titles’ > ‘Vertical axis title’ and label it as “Scores.”
  4. Legend Placement:
    • Determine the legend position by clicking on ‘Legend.’ I suggest placing it at the bottom, so set it accordingly.
  5. Chart Style:
    • Click on “Chart style” and optionally choose or toggle the “Smooth” feature.
  6. Final Touches:
    • You’re almost done creating your first Line chart/graph in Google Sheets. If desired, you can further customize elements like background color, grid lines, data points, etc., directly from the Chart Editor panel.

Review the completed sample chart below for reference.

Line Graph depicting the progress of a 50-Over Cricket Match.

Conclusion

I have covered all the essential steps for creating a Line chart in Google Sheets.

After successfully creating your chart, you can access additional options by clicking on the three vertical dots menu on the chart. This menu allows you to edit, delete, move to its own sheet, copy the chart, and more.

To activate this menu, simply click on the chart and explore these options.

Additionally, you can experiment with dynamically controlling chart source data by using drop-downs. This enables you to include or exclude series in charts by clicking on series names in the drop-downs. For more tips and tricks, explore additional tutorials available.

  1. How to Get Dynamic Range in Charts in Google Sheets.
  2. How to Use Slicer in Google Sheets to Filter Charts and Tables.
  3. Add Legend Next to Series in Line or Column Chart in Google Sheets.
  4. How to Change Data Point Colors in Charts in Google Sheets.
  5. How to Move the Vertical Axis to the Right Side in Google Sheets Chart.
Prashanth KV
Prashanth KV
Your Trusted Google Sheets and Excel Guide Prashanth KV brings a wealth of experience in Google Sheets and Excel, cultivated through years of work with multinational corporations in Mumbai and Dubai. As a recognized Google Product Expert in Docs Editors, Prashanth shares his expertise through insightful blogging since 2012. Explore his blog for practical tips and guidance on maximizing your spreadsheet skills.

Sort Data but Keep Blank Rows in Excel and Google Sheets

Using a dynamic array formula or the FILTER command, we can sort data and...

Lookup Values Under Categories in Excel and Google Sheets

We can use a combination of XLOOKUP and VLOOKUP in both Excel and Google...

Extract Items Under a Category from the Same Column in Excel

In Excel, you can use a combination of the XLOOKUP and DROP functions to...

How to Create a Searchable Table in Excel Using the FILTER Function

Finding specific records, or rows containing the required information, is straightforward in Excel using...

More like this

XMATCH Row by Row: Finding Values Across a Range in Google Sheets

Using the BYROW function with XMATCH in Google Sheets allows us to match values...

Limit Formula Expansion to a Specific Row in Google Sheets

In this tutorial, I’ll explain how to limit the expansion of an array formula...

3-D Referencing Structured Data Tables in Google Sheets

When you have several tables within a single sheet—not across multiple sheets in a...

3 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.