Peltier Tech Blog

Excel Charting Utilities | Custom Solutions | Training | Charts and Tutorials | PTS Blog

 

Main menu:

 
Peltier Tech
Chart Utilities

PTS Waterfall Chart Utility
PTS Cluster-Stack Column Chart Utility
PTS Box and Whisker Chart Utility
PTS Marimekko Chart Utility
PTS Dot Plot Utility
PTS Cascade Chart Utility

Subscribe

Site search

Subscribe

Site search


Recent Posts

Recently Commented

Popular Posts

Archive


 

Categories


 

Buy me a coffee

If this topic or the whole blog has been helpful, support further development by treating me to a cup of coffee.


Privacy Policy

Creative Commons License
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Chart Source Data Highlighting

by Jon Peltier
Tuesday, May 26th, 2009
Peltier Technical Services, Inc., Copyright © 2010.
Licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

There is a handy feature of Excel that makes it easier to manipulate the source data of a chart. When the chart is embedded in the same sheet that contains its data, and the data range is “well-formed” (I’ll define this later), the data range is highlighted with up to three rectangular outlines.

This highlighting is displayed when the chart area of the chart is selected…

Select Chart Area to Highlight Chart Source Data

… and when the plot area of the chart is selected.

Select Plot Area to Highlight Chart Source Data

The X values are highlighted with a purple border, the series names with a green border, and the Y values with a blue border. If the series names or the X values have not been defined, the corresponding colored borders are not displayed.

Examining the Chart Source Data Range

The original source data range which is illustrated in this screen shot

is referenced in the Data Range input box in the Classic Excel (up to 2003) Source Data dialog

Excel 2003 Source Data Dialog

and in the Chart Data Range input box in the Excel 2007 Select Data Source dialog.

Excel 2007 Source Data Dialog

When focus is on these input boxes, the source data range is outlined with the “marching ants” border.

Marching Ants Highlight Source Data

The source data range is “well formed” because it is defined by the intersection (below, dark gray) of entire rows and entire columns (light gray). The series names and the X values are aligned with the Y values.

Source Data as Intersection of Entire Rows and Columns

Not only do these highlights show the location of the chart data, they can be manually adjusted without opening a dialog or editing the series formulas.

Adjusting the Chart Source Data Range

When the mouse passes over the cornerof a highlighted region, the border becomes thicker, and the cursor is replaced by the northwest-southeast arrow icon, indicating to an alert user that the range can be resized. In this view, the range has been stretched by one row and one column.

Resized Chart Source Data Range

The Y values range can be resized in both directions, but it cannot be shrunk to zero rows or columns, and it cannot be stretched backward to overlap the X values or series names. The series names range can be stretched only in the direction to add or remove series names, horizontally in the view above. The X values range can be stretched only in the direction to add or remove points, horizontally in this view. When one of these ranges is resized, the other ranges resize accordingly.

When the mouse passes over the edge of a highlighted region, the border becomes thicker, and the cursor is replaced by the four-arrow icon, indicating that the range can be moved.

Arrow to Resize Chart Source Data Range

The screen shot below shows the Y values range dragged one row down and one column right.

Moved Chart Source Data Range

The Y values range can be moved in both directions, but it cannot be moved backward to overlap the X values or series names. The series names range can be moved only in the direction to change series names, horizontally in the view above. The X values range can be movedonly in the direction to change which points are plotted, vertically in this view. When one of these ranges is moved, the other ranges move accordingly.

The Excel 2003 Data Range input box shows the address of this multiple area range

Excel 2003 Source Data Dialog

as does the Excel 2007 Chart Data Range input box.

Excel 2007 Source Data Dialog

This areas of this multiple-area range are surrounded by the marching ants.

Marching Ants Highlight Source Data

We can show that although the range consists of multiple areas, it is still well-formed. The areas of the range can be defined by the intersection of entire rows and entire columns.

Source Data as Intersection of Entire Rows and Columns

A Poorly Formed Chart Source Data Range

What happens when the range is not well-formed? In the following, the Y values range for series Two in the range above chart has been offset one row upward (pink).

Source Data as Intersection of Entire Rows and Columns

This offset has disturbed the neat arrangement of the chart’s source data, and Excel cannot readily display such a range. Instead, Excel 2003 explains that the data range is too complex to be displayed, and warns you that if you select another range, it will wipe out all of the series you’ve painstakingly added to your chart.

Excel 2003 Source Data Dialog

Excel 2007 displays the same explanation and warning.

Excel 2007 Source Data Dialog

I hope this feature will make your charting gymnastics easier. In a future post I’ll show how you can use related highlighting that shows the name, X values, and Y values of a single series when it is selected.

This article provides a cleaner explanation of this topic, which was previously covered in Highlighted Chart Source Data.

Related Posts:

Bookmark and share this entry:
  • Twitter
  • Digg
  • Facebook
  • LinkedIn
  • del.icio.us
  • Technorati
  • StumbleUpon
  • Google Bookmarks
  • Reddit
  • MySpace
  • Slashdot
  • Yahoo! Buzz
  • Tumblr

Learn how to create Excel dashboards.

Write a comment

I welcome comments from my readers. If you have an opinion on this post, if you have a question or if there is anything to add, I want to hear from you. Whether you agree or disagree, please join the discussion.

If you want to include an image in your comment, post it on your own site or on one of the many free image sharing sites, and include a link in your comment. I'll download your image and insert the necessary html to display the image inline.

Read the PTS Blog Comment Policy.





Subscribe without commenting

PTS Waterfall Chart Utility PTS Cluster-Stack Column Chart Utility PTS Box and Whisker Chart Utility PTS Marimekko Chart Utility PTS Dot Plot Utility PTS Cascade Chart Utility

Create Excel dashboards quickly with Plug-N-Play reports.