Download the Excel line chart practice workbook
Free Download

Get the Line Chart Practice Workbook

Want the file without building it from scratch? Download the ready-to-use workbook and follow along with every method in this tutorial.

  • Practice creating line charts with real trend data
  • Test markers, multiple lines, and trendlines step by step
  • Includes chart formatting examples and Copilot line chart prompts

Enter your email below for instant access.

Get the Practice Workbook
Free. Instant access.

What Is a Line Chart in Excel?

A line graph in Excel shows trends over time using connected data points. It displays changes and trends at a glance.

For part-to-whole comparisons instead of trends, see our guide on how to make a pie chart in Excel.

Here’s a line graph example:

Excel line chart displaying monthly data trend with a single blue line across twelve data points

When Should You Use a Line Chart vs. Other Chart Types?

  • Best For: Showing data trends over time and comparing multiple data series in one chart.
  • Not Ideal For: Unrelated categories or data that doesn’t follow a sequence.

Which Excel Versions Support Line Charts?

Line charts work in all modern versions of Excel. You can follow every step in this guide using:

  • Excel for Microsoft 365 (formerly Office 365)
  • Excel 2024
  • Excel 2021
  • Excel 2019
  • Excel for the web (free with a Microsoft account)

The steps and menus are nearly identical across all versions. The main difference is that newer features like Copilot require a Microsoft 365 subscription.

💡 Quick tip: Want to create a chart fast? Select your data and press Alt+F1 (Windows) or Fn+Option+F1 (Mac).

Excel inserts a default chart on your current sheet instantly. It will likely create a column chart, but you can right-click it and select “Change Chart Type” to switch it to a line chart.

7 Types of Line Charts in Excel

Seven Excel line chart type icons: Line, Stacked, 100% Stacked, with Markers variations, and 3-D Line
  • Line Chart: A basic line chart connecting data points.
  • Stacked Line: Shows how parts of a whole change over time. Lines are cumulative, so each data series is added to the previous one, and lines never cross.
    Keep in mind that this can be misleading. Readers often assume each line shows independent values, when in reality each line includes all the values below it.
    If that’s confusing for your audience, consider using a Stacked Area chart instead, which makes the cumulative nature more obvious.
  • 100% Stacked Line: Similar to a stacked line chart, but the y-axis shows percentages. The top line represents a total of 100%, making it ideal for visualizing part-to-whole contributions over time.
  • Line with Markers: Adds visual markers at each data point for better visibility.
  • Stacked Line with Markers: Combines stacked lines with markers for each data point.
  • 100% Stacked Line with Markers: Combines 100% stacked lines with markers.
  • 3-D Line Chart: Displays each row or column of data as a 3-D ribbon. While it can look visually interesting, 3-D charts distort the perception of values and make it harder to read data accurately.
    → Best practice is to use a standard 2-D line chart instead.

How to Create a Line Chart in Excel (Quick Steps)

Step 1: Select Your Data

Ensure Two Columns:

A line graph requires at least two columns.

  • The first column will be on the X-axis (usually labels like dates or categories).
  • The second column will be on the Y-axis (the values you want to track).

Choose Your Data:

  • Click any cell within your data range.
  • Or, to plot only a specific section, highlight that range and include the column headers.
Excel worksheet with two-column data range selected and highlighted ready for line chart creation

Step 2: Insert the Line Chart

  • Go to the “Insert” tab.
  • Click “Insert Line or Area Chart” and pick your style. For this example, we are using a simple 2-D line chart.
Excel Insert tab ribbon with Line or Area Chart dropdown open showing 2-D and 3-D chart style options

Your line chart is now ready. The next section covers how to customize it.

Default 2-D line chart inserted in Excel worksheet with no custom formatting applied

How to Create a Line Chart Using Copilot in Excel

You don’t have to build line charts manually anymore. With Copilot in Excel, you can describe the chart you want in plain English and let AI build it for you.

Copilot’s editing capabilities go beyond simple chart suggestions. It plans the steps, creates the chart, and validates the result. You stay in control the entire time.

You need a Microsoft 365 subscription with Copilot access (Personal, Family, Premium, or a commercial Copilot license). This works in Excel for Windows, Mac, and the web.

Step 1: Format Your Data as a Table

Copilot works best when your data is in a proper Excel table. Without this, results can be unpredictable.

  • Select your data range (including headers).
  • Go to Insert > Table.
  • Make sure “My table has headers” is checked.
  • Click OK.
Excel table with Date and Visitors columns showing monthly website visitor data from Jan 26 to Dec 26 formatted as a table

Your data needs at least two columns: one for the X-axis (e.g., months or dates) and one or more for the Y-axis values.

Step 2: Open Copilot and Use Edit Mode

Click the Copilot icon on the Home tab in the ribbon

Excel ribbon showing Copilot icon on Home tab with Edit with Copilot pane open displaying the prompt box

The “Edit with Copilot” pane opens on the right side. You’ll see the heading “Let’s edit together” and a prompt box that says “Describe what you’d like to edit.”

Excel Copilot Edit pane showing the prompt box used to create a line chart from table data

You’ll also notice your workbook is automatically attached (shown by the small Excel icon below the prompt box).

The globe icon next to it lets Copilot search the web if needed.

Step 3: Type Your Chart Prompt

Tell Copilot exactly what you want. The more specific your prompt, the better the result.
For our website visitors data, here’s a prompt that works well:

"Create a line chart showing website visitors by month with markers at each data point."

You can also add formatting preferences in the same prompt:

"Create a line chart of Visitors by Date. Add markers, a chart title that says 'Website Visitors 2026', and use a blue line."

The key is to reference your actual column names (Date and Visitors) so Copilot knows exactly which data to use.

Edit with Copilot pane with prompt typed: Create a line chart of Visitors by Date with markers and blue line

Step 4: Watch Copilot Work

After you submit your prompt, Copilot creates a step-by-step plan and shows you its reasoning in the pane.

You’ll see it:

  • Analyze your data structure
  • Select the right chart type
  • Build the chart
  • Validate the result against your request

This usually takes 30 seconds to a couple of minutes depending on complexity. You can press the Stop button at any time if you want to pause or cancel.

Copilot creates a Website Visitors 2026 line chart with markers showing it reasoned in 12 steps to complete

Step 5: Review and Refine

Once the chart is ready, it appears directly in your workbook. From here you can:

Keep it as is. The chart is already inserted and fully editable like any Excel chart.
Refine it by typing follow-up instructions. For example:

  • “Add a linear trendline.”
  • “Remove the gridlines and add data labels for the highest and lowest points.”
  • “Make the line smoother.”

Copilot keeps the conversation going, so you can iterate without starting over. Every change it makes is a standard Excel edit that you can undo with Ctrl+Z.

Refined line chart with gridlines removed and data labels on highest point 38,000 and lowest point 22,500

Example Prompts That Work Well

Here are prompts you can copy and use for your own data:

WHAT YOU WANTAI PROMPT EXAMPLE
Simple line chart“Create a line chart for the data in this table.”
With markers“Create a line chart with markers showing Visitors by Date.”
With trendline“Create a line chart of Visitors by Date with a linear trendline.”
Custom styling“Build a line chart of Visitors by month with a blue line, no gridlines, and rounded corners.”
With data labels“Create a line chart with markers and data labels showing the value at each point.”

💡 The more detail you put in your prompt, the closer the result will be to what you want.

But even a simple prompt like “Create a line chart for this table” gives you a solid starting point you can refine.

When to Use Copilot vs. Manual Chart Creation

Copilot is great for speed. But it’s not always the right choice.

Use Copilot when:

  • You need a quick chart from well-structured data
  • You want to explore different chart styles fast
  • You’re building a report and need multiple charts

Build manually when:

  • You need pixel-perfect control over every element
  • Your data isn’t in a clean table format
  • You want chart types Copilot doesn’t support yet (it currently handles over 12 chart types, but not every Excel chart is available)

For most line charts, Copilot handles 80-90% of the work. You can always fine-tune colors, fonts, and spacing manually afterward.

How to Add Multiple Lines to an Excel Line Chart

To add another line, we’ll use the “Sales” data from column C.

Excel data table showing three columns with month labels and two value series for multi-line chart

Add Another Data Series:

  • Right-click on the chart and select “Select Data”.
  • Click “Add” to add another data series.
Excel Select Data Source dialog box with Add button highlighted to insert a new data series
  • For the series name, click the header in cell C2.
  • For the series values, select the data range C3:C14
  • Click on OK.
Excel Edit Series dialog showing series name as cell C2 and values range C3 through C14 selected

Your chart now includes multiple lines, making it easy to compare data over time.

Excel line chart with two colored lines comparing two data series across twelve months

Featured Course

Business Charts in Excel

Create professional Excel charts that tell a story AND update automatically. Learn the formulas and design techniques that get your reports noticed.
Learn More

How to Customize and Format Your Line Chart

Excel’s default charts are functional but plain. These customizations make your line chart clearer and more professional:

How to Add and Edit a Chart Title

  • If there is no existing title, click the “+” icon next to the chart and check the box for “Chart Title.”
Excel chart elements plus menu showing Chart Title and other element checkboxes next to line chart
  • Click on the chart title area.
  • Type your new title or edit the existing one.
Excel line chart with chart title text box selected and editable showing cursor ready for input

How to Customize Axis Lines and Bounds

Customize the axis lines and options in your line chart. This can improve its readability and make key data points stand out.

Format Axis Lines

  • Right-click on the axis.
  • Select “Format Axis.”
  • Adjust the line style and color in the Format Axis pane.
Format Axis pane in Excel showing line style color and width options for chart axis formatting

Adjusting Axis Options

  • Set Axis Bounds: Excel sets automatic bounds. Adjust the minimum and maximum bounds to focus on specific data ranges.
  • Set Axis Units: Excel sets automatic units for major and minor intervals. Customize these to control label spacing for better readability.
Excel Format Axis pane showing Axis Options with Bounds and Units fields for axis scale control

How to Format Gridlines for Better Readability

Customizing gridlines improves clarity and keeps the focus on your data.

💡 Use light colors and thin lines to avoid distracting from the data. Increase transparency to keep the focus on your data points.

How to Format Gridlines

  • Select Gridlines: Double-click on any gridline. Blue dots will appear, indicating they are selected.
  • Format: In the Fill & Line tab, adjust the line style, width, and color to match your chart’s design.

Adding Transparency

  • Set the transparency level between 50% and 70% to make the gridlines less obtrusive.
Excel gridlines formatting pane with transparency set between 50-70% and line style options visible

How to Change Marker Style, Size, and Color

Change Marker Style

  • Right-click on the data series.
  • Select “Format Data Series.”
  • Switch to the Fill & Line tab.
  • Click “Marker” and expand “Marker Options”.

Select Marker Type

  • In the Marker Options, select the “Built-in” radio button.
  • Choose the desired marker type in the “Type” box.

Adjust Marker Size

  • In the Marker Options, use the “Size” box to make markers larger or smaller.

Change Marker Fill and Border Colors

  • Expand the “Fill” and “Border” options to change the fill and border color of the markers.
Excel Format Data Series pane showing Marker Options with type selector size fill and border colors

Want to automatically highlight the highest and lowest values on your line chart? See our guide on highlighting max and min values in a line chart.

How to Add and Position a Legend

A legend helps identify what each line in your chart represents, making it easier for viewers to understand your data. Here’s how to add them:

  • Select chart: Click on the chart to select it.
  • Add legend: Click the “+” icon next to the chart and check “Legend.”
  • Position legend: Click the arrow next to “Legend” and choose a position (e.g., Right, Top, Bottom, Left).
Excel chart elements menu showing Legend checkbox with position options Right Top Bottom and Left

Make Legends Dynamic

The Excel default legends might not always be the best. You can make the legends dynamic for better clarity and adaptability. They update automatically based on your data changes.

Check out this detailed article to learn how.

How to Add Data Labels to a Line Chart

Data labels display the exact value at each data point on your line. This is useful when your audience needs to see specific numbers, not just the overall trend.

Add Data Labels to All Points

  • Click on the chart to select it.
  • Click the “+” icon next to the chart.
  • Check “Data Labels”.
  • Click the arrow next to “Data Labels” to choose a position: Above, Below, Center, or other options depending on your chart type.

Add a Label to a Single Data Point

You don’t always want labels on every point. Sometimes labeling just the highest or lowest value is cleaner.

  • Click on the line to select the entire data series.
  • Click again on the specific data point you want to label (e.g., the peak value).
  • Right-click that single point and select “Add Data Label”.

The label appears only on that one point. This keeps your chart clean while still highlighting the number that matters most.

Format Your Data Labels

  • Right-click any data label and select “Format Data Labels”.
  • In the Format Data Labels pane, you can change:
    • Label position (Above, Below, Center)
    • Number format (add commas, currency symbols, or decimal places)
    • Font size and color to match your chart design

💡 For line charts with many data points, showing labels everywhere looks cluttered. Consider labeling only the first and last points, or just the max and min values.

Excel line chart with maximum and minimum data points highlighted using distinct colored markers

For a detailed walkthrough on highlighting max and min values, check out our guide here.

Featured Course

Visually Effective Excel Dashboards

Learn to design impressive Excel Dashboards. Use smart functions for clear, interactive dashboards. Make them so easy to use that everyone will love them!
Learn More
Excel dashboards course cover

How to Change Line Colors and Styles

Changing line colors in your Excel chart can enhance its visual appeal and make it easier to differentiate between data series. Excel’s default colors might not always be the best choice. Customizing line colors can improve readability and the overall look of your line chart. Here’s how:

Select Line:

  • Double-click on the line you want to re-color.

Modify Line Color:

  • On the Format Data Series pane, switch to the Fill & Line tab.
  • Click on the Color drop-down and choose a new color for the line.
  • For specific color codes, click “More Colors…” and pick any RGB color you want or enter the Hex code.

Additional Line Formatting:

  • On this pane, you can also change the line width, transparency, dash type, and more.
  • For example, to use a dashed line, click the Dash type drop-down box and choose the pattern you want.
Excel Format Data Series pane showing line color picker hex code input and dash type dropdown options

How to Add Smooth Lines and Rounded Corners

Using smoothed lines can make your data trends look better and easier to interpret, especially with fluctuating data. Adding smooth lines and rounded corners gives your chart a modern, polished look.

Make Lines Smoother

  • Right-click on the data series.
  • Select “Format Data Series.”
  • Check the “Smoothed Line” option at the bottom of the pane.
Excel Format Data Series pane with Smoothed Line checkbox enabled at bottom of line options panel

Add Rounded Corners to Chart Area

  • Click on the chart area (not on any of the lines).
  • In the Format Chart Area pane, check the box for “Rounded Corners.”
Excel Format Chart Area pane showing Rounded Corners checkbox enabled for polished chart borders


Here you can review the result.

Excel line chart with smoothed lines and rounded chart corners after formatting

How to Add a Trendline to a Line Chart

Adding a trend line to your line chart can help you visualize the overall direction or pattern in your data. This is useful for identifying trends, making predictions, and analyzing data patterns. Here’s how:

  • Click on the chart to select it.
  • Click the “+” icon next to the chart.
  • Check “Trendline” to add a trend line. Excel will add a linear trendline by default.
  • To change the type, click the arrow next to “Trendline” and select a specific type (e.g., Linear, Exponential, Moving Average) based on your data and analysis needs.
Excel chart elements menu showing Trendline options including Linear Exponential and Moving Average

Formatting Trend Lines

  • Right-click on the trend line.
  • Select “Format Trendline” from the context menu.
  • In the Format Trendline pane, you can change the line color, style, and thickness.
  • You can also choose options like “Display Equation on chart” to show the trendline’s mathematical equation.
  • Display R-squared Value: Check the box for “Display R-squared value on chart” to see how well your data fits the trendline.

For more information on R-squared values, check out our detailed article here.

Types of Trend Lines

  • Linear Trendline: Suitable for most cases to show a straight-line trend.
  • Exponential Trendline: Best for data that increases or decreases rapidly. For example, predicting population growth.
  • Moving Average Trendline: Useful for smoothing out fluctuations to show a clearer trend over time. For example, analyzing sales data over several years.

Trend lines can provide valuable insights by highlighting the long-term direction of your data, smoothing out short-term fluctuations, and making it easier to understand underlying trends.

Common Line Chart Mistakes (and How to Fix Them)

Line charts are simple to create, but small mistakes can make them confusing or misleading. Here are the most common ones and how to avoid them.

Using a Line Chart for Unrelated Categories

Line charts imply a connection between data points. If your categories have no logical order or sequence (e.g., comparing departments, products, or countries), a line connecting them suggests a trend that doesn’t exist.

Fix: Use a bar or column chart instead. Save line charts for data that follows a sequence, like months, quarters, or years.

Using a 3-D Line Chart

3-D line charts might look impressive at first glance, but they distort how your audience perceives the data. The added depth makes it difficult to read exact values and compare data points accurately.

Fix: Stick with a standard 2-D line chart. It’s cleaner, easier to read, and more professional.

Not Starting the Y-Axis at Zero

When your Y-axis doesn’t start at zero, small differences between values can look dramatic. A 2% change can appear like a 50% drop depending on the axis range. This can unintentionally mislead your audience.

Fix: Start your Y-axis at zero when you’re comparing magnitudes. If your values are in a narrow range (e.g., 95 to 100) and you need to show small variations, adjust the axis bounds intentionally and add a clear note so viewers understand the scale.

Too Many Lines on One Chart

Once you go beyond 3 or 4 lines, your chart becomes hard to read. Lines overlap, colors blend together, and the viewer doesn’t know where to look.

Fix: Highlight the one or two lines that matter most using a bold color. Set the rest to a light gray. This keeps all the data visible while directing attention where it counts. You can also split the data across multiple smaller charts if each line needs equal focus.

Confusing Line Charts with Scatter Charts

This is one of the most common Excel charting mistakes. Line charts use a category axis (text or dates spaced evenly). Scatter charts use a value axis (numbers spaced proportionally).

If your X-axis data is numeric (like temperature or distance), a line chart will space those values evenly regardless of the gaps between them. That can distort your data.

Fix: Use a scatter chart (XY chart) when both axes are numeric. Use a line chart when your X-axis is text, dates, or evenly spaced categories.

Using Default Colors Without Enough Contrast

Excel’s default color palette isn’t always easy to read, especially when printed in grayscale or viewed on a projector. Lines with similar colors can blend together and confuse your audience.

Fix: Choose colors with strong contrast between them. Avoid pairing similar shades (like light blue and light green). Test your chart in grayscale by printing a black-and-white preview to make sure every line is still distinguishable.

Download the Workbook

Get Your Professional Line Chart Template

Ready to transform your data? Download our pre-configured workbook to practice building multi-series charts, highlighting max/min values, and creating polished visual reports instantly.

Download the Practice Workbook →

To learn more chart types and professional formatting techniques, check out our Business Charts in Excel course.

Featured Course

Business Charts in Excel

Create professional Excel charts that tell a story AND update automatically. Learn the formulas and design techniques that get your reports noticed.
Learn More

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.