Learning

open
close

Basic Visualization and Graphing Using Excel

June 28, 2025 | by Bloom Code Studio

Excel provides many options for generating graphs and other visualizations to assist in data science investigations.

The menu in Figure A9 shows some of the many options available within Excel for graphing.

A screenshot of a menu of various graphs available within Excel including Column, Line, Pie, Bar, Area, X Y (Scatter), and more.

Figure A9 A Menu of Various Graphs Available within MS Excel (Used with permission from Microsoft)

Graphically Represent Data Using Excel

Graphical representation of data, or data visualization, can be done easily with Excel. Let’s draw a bar chart as an example. You can start by simply clicking Insert > Bar chart > Clustered Column icon (Figure A10).

A screenshot of Excel’s Insert menu with a 2-D column Bar Chart Icon selected and highlighted with a red outline.

Figure A10 MS Excel’s Bar Chart Icon (Used with permission from Microsoft)

Once the icon is clicked, you will see an arbitrary bar chart. It could be just a plain whitespace too—it really depends on what cell was selected when you clicked the icon.

Now click the chart area and it will reveal two new tabs—Chart Design and Format. Go to the Chart Design tab and click Select Data (Figure A11).

A screenshot of Excel's Chart Design tab with the option to Select Data.

Figure A11 Select Data Menu on MS Excel (Used with permission from Microsoft)

In the Select Data window, define Chart data range by highlighting A1:F13 (i.e., the entire table). This will auto-fill the rest of the pop-up window (Figure A12).

A screenshot of Excel's Select Data Pop-Up Window. The menu is labeled Range Details. Chart data range is filled in with =Sheet1!$A$1:$F$13. Height (inches) is selected on the Legend entries (Series) menu.

Figure A12 Select Data Pop-Up Window on MS Excel (Used with permission from Microsoft)

Three entries—Height, Weight, Age—refer to each group of bars. Each group will have 13 bars, each of which represents different baseball players. For now, let’s plot only Height. You can do so by removing the other two by clicking the “-” button under the entry list.

Click Ok and the bar chart is generated as Figure A13. Notice that columns A through C are displayed as the x-axis labels, as indicated on the pop-up window (see the Horizontal [Category] axis labels part in Figure A12).

A bar chart labeled “Heights of Various Baseball Players.” The X axis has three kinds of labels (Position, Team, and Name). The Y axis is labeled Height (inches) and ranges from 64 to 84. The chart has 12 blue bars of varying heights.

Figure A13 The First Bar Chart with Three Kinds of x-Axis Labels (Position, Team, and Name)

If you wish to show only the player names, go back to the Select Data window and update the Horizontal axis labels to be just A2:A13 (Figure A14).

A screenshot of Excel's Select Data window with the Horizontal (category) axis labels option open and filled in with: =Sheet1!$A$2:$A$13. The final A is highlighted in green.

Figure A14 Keeping Only Name on the x-Axis Label (Used with permission from Microsoft)

The resulting plot will only have player names along the x-axis (Figure A15).

A bar chart labeled “Heights of Various Baseball Players.” The X axis has player names. The Y axis is labeled Height (inches) and ranges from 64 to 84. The chart has 12 blue bars of varying heights.

Figure A15 The Second Bar Chart with Only Name Displayed on the x-Axis

Changing the formatting of different chart elements is easy in Excel as well. You can 1) click the element to change the text or drag to move the position of the element or 2) double-click the element in the corresponding pop-up menu. Figure A16 shows the pop-up menu for the chart title element. Notice that you can change different aspects of the presentation with the title element, such as Fill and Border.

A screenshot of a bar chart in Excel with the title highlighted. The Format Chart Title pop-up menu is open. Title Options is selected and under the Fill menu, No fill is selected with a green button.

Figure A16 Changing the Formatting of the Bar Chart (Used with permission from Microsoft)

EXAMPLE A.5

Problem

Using MS Excel, draw a scatterplot between Weight (x-axis) and Height (y-axis). A scatterplot is a plot that depicts each data point as a dot. The location of a dot is typically determined by the x- and y-axis.

Solution

There is an icon for scatterplots under Insert (see Figure A17). On the Select Data pop-up window, select D1:E13 since the weights and heights are in column D and E, as shown in Figure A17 and Figure A18.

A screenshot of the Insert menu in Excel with the Scatter Icon selected.

Figure A17 Scatterplot Icon (Used with permission from Microsoft)

A screenshot of the Select Data Source pop-up window in Excel. The menu is labeled Range Details. Chart data range is filled in with =Sheet1!$D$1:$E$13. Weight (pounds) is selected on the Legend entries (Series) menu.

Figure A18 Select Data for Drawing a Scatterplot (Used with permission from Microsoft)

The resulting scatterplot is shown in Figure A19. Notice that the numbers along the x-axis are heights, while those along the y-axis are weights.

A scatterplot labeled “Scatterplot of Heights and Weights.” The X axis is labeled Height (inches) and ranges from 68 to 84. The Y axis is labeled Weight (pounds) and ranges from 0 to 300. The chart has 12 data points with most clustered between 70,200 and 76, 200. There is one outlier at 82,250.

Figure A19 The Initial Scatterplot

You can change the chart title and the axis titles by double-clicking the title text and the axes themselves, as in Figure A20.

A screenshot of a scatterplot in Excel. The title is highlighted and says: Height (inches) - Weight (pounds).

Figure A20 Changing the Title of the Scatterplot (Used with permission from Microsoft)

Once either the x– or y-axis is double-clicked, a different menu will show up and there you can add axis titles, as illustrated in Figure A21.

A screenshot of Excel's Chart Design menu. A submenu has Axis Titles highlighted in green and another submenu branches off of that with Primary Horizontal and Primary Value as the two choices for changing the Axis Titles of the scatterplot.

Figure A21 Changing the Axis Title of the Scatterplot (Used with permission from Microsoft)

RELATED POSTS

View all

view all