Reliable Display of X-Y Values in a Chart

Written by Allen Wyatt (last updated November 4, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


1

Enno works regularly with X-Y charts. He can hover the mouse pointer over a data point on the chart and see the X-Y values. In his older version of Excel (2003) this worked unfailingly. In Microsoft 365 the values do not show reliably for Enno. Sometimes they do, but most often nothing shows. Other times he has to click somewhere around the data point to see the values. Enno wonders if there is some setting that will show the X-Y values more reliably.

In order to assure that Excel will display values when you use the mouse to point at the data points, you need to turn on a couple of settings. Display the Excel Options dialog box by displaying the File tab of the ribbon and clicking Options. (If you are using Excel 2007, click the Office button and then click Excel Options.) At the left side of the dialog box click Advanced, and then scroll down until you can see the Chart options. (See Figure 1.)

Figure 1. The Chart options in the Excel Options dialog box.

It is the first two options that you want to pay attention to. One controls the display of names and the other controls the display of values. Make sure the options are selected, as desired. When you click OK, you should then be able to hover over a data point and see the requested information.

If, however, you cannot see the values reliably, then you may want to adjust the settings so that only the second option ("Show data point values on hover") is selected. If they are still not visible reliably when you hover, it could be that your chart a large number of data points being plotted. In that case, Excel may not be able to reliably determine which data point you are hovering over with the mouse pointer.

If you find that the settings in the Excel Options dialog box are getting cleared for some reason, then you may want to use a macro to turn them on. This short macro will do the trick:

Sub ShowChartTipValues()
    Application.ShowChartTipValues = True
End Sub

You could also use a macro to toggle the value on and off, as shown here:

Sub ToggleChartTipValues()
    Application.ShowChartTipValues = (Not .ShowChartTipValues)
End Sub

If you want to affect the display of data point names, you can do so by changing the .ShowChartTipValues property to .ShowChartTipNames.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (693) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Opening a Workbook to a Specific Worksheet

When you open a workbook, Excel displays the worksheet that was visible when the workbook was last saved. You may want, ...

Discover More

Workbook Events

You can create macros that run whenever Excel detects a certain event happening within an entire workbook. This tip ...

Discover More

Adding an Ellipsis to the Beginning of Some Paragraphs

The Find and Replace feature of Word is very powerful. You can even use it to add a unique character to the beginning of ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Changing Y-Axis Label Width

Excel provides quite a bit of flexibility in how your chart looks. One of the least flexible places is in adjusting the ...

Discover More

Exporting Black and White Charts

Excel's charts are normally created in color, but you can print them in black and white. You may be looking for a way to ...

Discover More

Controlling Chart Gridlines

Gridlines are often added to charts to help improve the readability of the chart itself. Here's how you can control ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is four less than 7?

2023-11-04 10:11:35

J. Woolley

There is an error in the Tip's second macro. It should be:

Sub ToggleChartTipValues()
    Application.ShowChartTipValues = (Not Application.ShowChartTipValues)
End Sub


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.