Present your data in a scatter chart or a line chart (2024)

Skip to main content

Microsoft

Support

Support

Sign in

Sign in with Microsoft

Sign in or create an account.

Hello,

Select a different account.

You have multiple accounts

Choose the account you want to sign in with.

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 More...Less

Scatter charts and line charts look very similar, especially when a scatter chart is displayed with connecting lines. However, the way each of these chart types plots data along the horizontal axis (also known as the x-axis) and the vertical axis (also known as the y-axis) is very different.

Present your data in a scatter chart or a line chart (2) Present your data in a scatter chart or a line chart (3)

Note:For information about the different types of scatter and line charts, see Available chart types in Office.

Before you choose either of these chart types, you might want to learn more about the differences and find out when it's better to use a scatter chart instead of a line chart, or the other way around.

The main difference between scatter and line charts is the way they plot data on the horizontal axis. For example, when you use the following worksheet data to create a scatter chart and a line chart, you can see that the data is distributed differently.

Present your data in a scatter chart or a line chart (4)

In a scatter chart, the daily rainfall values from column A are displayed as x values on the horizontal (x) axis, and the particulate values from column B are displayed as values on the vertical (y) axis. Often referred to as an xy chart, a scatter chart never displays categories on the horizontal axis.

Present your data in a scatter chart or a line chart (5)

A scatter chart always has two value axes to show one set of numerical data along a horizontal (value) axis and another set of numerical values along a vertical (value) axis. The chart displays points at the intersection of an x and y numerical value, combining these values into single data points. These data points may be distributed evenly or unevenly across the horizontal axis, depending on the data.

The first data point to appear in the scatter chart represents both a y value of 137 (particulate) and an x value of 1.9 (daily rainfall). These numbers represent the values in cell A9 and B9 on the worksheet.

In a line chart, however, the same daily rainfall and particulate values are displayed as two separate data points, which are evenly distributed along the horizontal axis. This is because a line chart only has one value axis (the vertical axis). The horizontal axis of a line chart only shows evenly spaced groupings (categories) of data. Because categories were not provided in the data, they were automatically generated, for example, 1, 2, 3, and so on.

This is a good example of when not to use a line chart.

Present your data in a scatter chart or a line chart (6)

A line chart distributes category data evenly along a horizontal (category) axis , and distributes all numerical value data along a vertical (value) axis.

The particulate y value of 137 (cell B9) and the daily rainfall x value of 1.9 (cell A9) are displayed as separate data points in the line chart. Neither of these data points is the first data point displayed in the chart— instead, the first data point for each data series refers to the values in the first data row on the worksheet (cell A2 and B2).

Axis type and scaling differences

Because the horizontal axis of a scatter chart is always a value axis, it can display numeric values or date values (such as days or hours) that are represented as numerical values. To display the numeric values along the horizontal axis with greater flexibility, you can change the scaling options on this axis the same way that you can change the scaling options of a vertical axis.

Because the horizontal axis of a line chart is a category axis, it can be only a text axis or a date axis. A text axis displays text only (non-numerical data or numerical categories that are not values) at evenly spaced intervals. A date axis displays dates in chronological order at specific intervals or base units, such as the number of days, months, or years, even if the dates on the worksheet are not in order or in the same base units.

The scaling options of a category axis are limited compared with the scaling options of a value axis. The available scaling options also depend on the type of axis that you use.

Scatter charts are commonly used for displaying and comparing numeric values, such as scientific, statistical, and engineering data. These charts are useful to show the relationships among the numeric values in several data series, and they can plot two groups of numbers as one series of xy coordinates.

Line charts can display continuous data over time, set against a common scale, and are therefore ideal for showing trends in data at equal intervals or over time. In a line chart, category data is distributed evenly along the horizontal axis, and all value data is distributed evenly along the vertical axis. As a general rule, use a line chart if your data has non-numeric x values— for numeric x values, it is usually better to use a scatter chart.

Consider using a scatter chart instead of a line chart if you want to:

  • Change the scale of the horizontal axisBecause the horizontal axis of a scatter chart is a value axis, more scaling options are available.

  • Use a logarithmic scale on the horizontal axisYou can turn the horizontal axis into a logarithmic scale.

  • Display worksheet data that includes pairs or grouped sets of valuesIn a scatter chart, you can adjust the independent scales of the axes to reveal more information about the grouped values.

  • Show patterns in large sets of dataScatter charts are useful for illustrating the patterns in the data, for example by showing linear or non-linear trends, clusters, and outliers.

  • Compare large numbers of data points without regard to timeThe more data that you include in a scatter chart, the better the comparisons that you can make.

Consider using a line chart instead of a scatter chart if you want to:

  • Use text labels along the horizontal axisThese text labels can represent evenly spaced values such as months, quarters, or fiscal years.

  • Use a small number of numerical labels along the horizontal axisIf you use a few, evenly spaced numerical labels that represent a time interval, such as years, you can use a line chart.

  • Use a time scale along the horizontal axisIf you want to display dates in chronological order at specific intervals or base units, such as the number of days, months, or years, even if the dates on the worksheet are not in order or in the same base units, use a line chart.

WindowsmacOS

Create a scatter chart

Present your data in a scatter chart or a line chart (7)

So, how did we create this scatter chart? The following procedure will help you create a scatter chart with similar results. For this chart, we used the example worksheet data. You can copy this data to your worksheet, or you can use your own data.

  1. Copy the example worksheet data into a blank worksheet or open the worksheet that contains the data you want to plot in a scatter chart.

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    A

    B

    Daily Rainfall

    Particulate

    4.1

    122

    4.3

    117

    5.7

    112

    5.4

    114

    5.9

    110

    5.0

    114

    3.6

    128

    1.9

    137

    7.3

    104

  2. Select the data you want to plot in the scatter chart.

  3. Click the Insert tab, and then click Insert Scatter (X, Y) or Bubble Chart.

    Present your data in a scatter chart or a line chart (8)

  4. Click Scatter.

    Tip:You can rest the mouse on any chart type to see its name.

  5. Click the chart area of the chart to display the Design and Format tabs.

  6. Click the Design tab, and then click the chart style you want to use.

    Present your data in a scatter chart or a line chart (9)

  7. Click the chart title and type the text you want.

  8. To change the font size of the chart title, right-click the title, click Font, and then enter the size that you want in the Size box. Click OK.

  9. Click the chart area of the chart.

  10. On the Design tab, click Add Chart Element > Axis Titles, and then do the following:

    Present your data in a scatter chart or a line chart (10)

    1. To add a horizontal axis title, click Primary Horizontal.

    2. To add a vertical axis title, click Primary Vertical.

    3. Click each title, type the text that you want, and then press Enter.

    4. For more title formatting options, on the Format tab, in the Chart Elements box, select the title from the list, and then click Format Selection. A Format Title pane will appear. Click Size & Properties Present your data in a scatter chart or a line chart (11), and then you can choose Vertical alignment, Text direction, or Custom angle.

  11. Click the plot area of the chart, or on the Format tab, in the Chart Elements box, select Plot Area from the list of chart elements.

    Present your data in a scatter chart or a line chart (12)

  12. On the Format tab, in the Shape Styles group, click the More button Present your data in a scatter chart or a line chart (13), and then click the effect that you want to use.

  13. Click the chart area of the chart, or on the Format tab, in the Chart Elements box, select Chart Area from the list of chart elements.

  14. On the Format tab, in the Shape Styles group, click the More button Present your data in a scatter chart or a line chart (14), and then click the effect that you want to use.

  15. If you want to use theme colors that are different from the default theme that is applied to your workbook, do the following:

    1. On the Page Layout tab, in the Themes group, click Themes.

      Present your data in a scatter chart or a line chart (15)

    2. Under Office, click the theme that you want to use.

Create a line chart

Present your data in a scatter chart or a line chart (16)

So, how did we create this line chart? The following procedure will help you create a line chart with similar results. For this chart, we used the example worksheet data. You can copy this data to your worksheet, or you can use your own data.

  1. Copy the example worksheet data into a blank worksheet, or open the worksheet that contains the data that you want to plot into a line chart.

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    A

    B

    C

    Date

    Daily Rainfall

    Particulate

    1/1/07

    4.1

    122

    1/2/07

    4.3

    117

    1/3/07

    5.7

    112

    1/4/07

    5.4

    114

    1/5/07

    5.9

    110

    1/6/07

    5.0

    114

    1/7/07

    3.6

    128

    1/8/07

    1.9

    137

    1/9/07

    7.3

    104

  2. Select the data that you want to plot in the line chart.

  3. Click the Insert tab, and then click Insert Line or Area Chart.

    Present your data in a scatter chart or a line chart (17)

  4. Click Line with Markers.

  5. Click the chart area of the chart to display the Design and Format tabs.

  6. Click the Design tab, and then click the chart style you want to use.

    Present your data in a scatter chart or a line chart (18)

  7. Click the chart title and type the text you want.

  8. To change the font size of the chart title, right-click the title, click Font, and then enter the size that you want in the Size box. Click OK.

  9. Click the chart area of the chart.

  10. On the chart, click the legend, or add it from a list of chart elements (on the Design tab, click Add Chart Element > Legend, and then select a location for the legend).

    Present your data in a scatter chart or a line chart (19)

  11. To plot one of the data series along a secondary vertical axis, click the data series, or select it from a list of chart elements (on the Format tab, in the Current Selection group, click Chart Elements).

    Present your data in a scatter chart or a line chart (20)

  12. On the Format tab, in the Current Selection group, click Format Selection. The Format Data Series task pane appears.

  13. Under Series Options, select Secondary Axis, and then click Close.

  14. On the Design tab, in the Chart Layouts group, click Add Chart Element, and then do the following:

    1. To add a primary vertical axis title, click Axis Title >Primary Vertical. and then on the Format Axis Title pane, click Size & Properties Present your data in a scatter chart or a line chart (21) to configure the type of vertical axis title that you want.

    2. To add a secondary vertical axis title, click Axis Title > Secondary Vertical, and then on the Format Axis Title pane, click Size & Properties Present your data in a scatter chart or a line chart (22) to configure the type of vertical axis title that you want.

    3. Click each title, type the text that you want, and then press Enter

  15. Click the plot area of the chart, or select it from a list of chart elements (Format tab, Current Selection group, Chart Elements box).

  16. On the Format tab, in the Shape Styles group, click the More button Present your data in a scatter chart or a line chart (23), and then click the effect that you want to use.

    Present your data in a scatter chart or a line chart (24)

  17. Click the chart area of the chart.

  18. On the Format tab, in the Shape Styles group, click the More button Present your data in a scatter chart or a line chart (25), and then click the effect that you want to use.

  19. If you want to use theme colors that are different from the default theme that is applied to your workbook, do the following:

    1. On the Page Layout tab, in the Themes group, click Themes.

      Present your data in a scatter chart or a line chart (26)

    2. Under Office, click the theme that you want to use.

Create a scatter chart

  1. Select the data you want to plot in the chart.

  2. Click the Insert tab, and then click X Y Scatter, and under Scatter, pick a chart.

  3. With the chart selected, click the Chart Design tab to do any of the following:

    • Click Add Chart Element to modify details like the title, labels, and the legend.

    • Click Quick Layout to choose from predefined sets of chart elements.

    • Click one of the previews in the style gallery to change the layout or style.

    • Click Switch Row/Column or Select Data to change the data view.

  4. With the chart selected, click the Design tab to optionally change the shape fill, outline, or effects of chart elements.

Create a line chart

  1. Select the data you want to plot in the chart.

  2. Click the Insert tab, and then click Line, and pick an option from the available line chart styles.

  3. With the chart selected, click the Chart Design tab to do any of the following:

    • Click Add Chart Element to modify details like the title, labels, and the legend.

    • Click Quick Layout to choose from predefined sets of chart elements.

    • Click one of the previews in the style gallery to change the layout or style.

    • Click Switch Row/Column or Select Data to change the data view.

  4. With the chart selected, click the Design tab to optionally change the shape fill, outline, or effects of chart elements.

See Also

Save a custom chart as a template

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Present your data in a scatter chart or a line chart (27)

Microsoft 365 subscription benefits

Present your data in a scatter chart or a line chart (28)

Microsoft 365 training

Present your data in a scatter chart or a line chart (29)

Microsoft security

Present your data in a scatter chart or a line chart (30)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Present your data in a scatter chart or a line chart (31)

Ask the Microsoft Community

Present your data in a scatter chart or a line chart (32)

Microsoft Tech Community

Thank you for your feedback!

×

Present your data in a scatter chart or a line chart (2024)
Top Articles
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 5691

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.