Xaprb

Stay curious!

How to label Excel and OpenOffice.org XY scatter plots

with 12 comments

In an earlier post I compared number formatting in Excel vs. OpenOffice.org Calc. I’ve learned some more interesting things about both spreadsheets, as regards opening CSV files and adding labels to XY scatter charts (spoiler: both spreadsheets have problems)

Excel vs. Calc

Opening CSV files with Excel

Maybe someone else can answer this one for me, because I’m stumped and can’t seem to find the right search phrase to turn up relevant results in Google: I can’t get Excel to open a .csv file on my friend’s Mac. It runs OSX, and the “About Excel” dialog says “Excel X for Mac” (can you tell what a dummy I am when it comes to Mac? The only thing that saves me is the presence of the Terminal, so I can resort to the command line to do things). Both of us have tried all the ways we know. No matter what we do in the Open dialog, including choosing “All Readable Files,” it leaves CSV files grayed out. The only way we’ve found is to rename it to something else such as .txt, open the file, and then do Data->Text To Columns.

Labelling XY scatter charts

I’ve been working with cemetery data again. Recently we took a total station out to a cemetery and mapped it, then downloaded the data as tab-separated values. For a quick and dirty map of the data, it’s great to import it into a spreadsheet, select the Northing and Easting columns, and map it as a scatter plot. This gives a quick sense of what the map looks like. Of course, when you’ve got hundreds of points on the map, you want them labelled so you can see what they are, like so:

The desired result

The first column in the spreadsheet is the point’s name. We tried and tried but couldn’t get Excel to plot the points with nice labels next to them. A bit of Googling revealed lots of other frustrated folks with the same problem. This has been a limitation in Excel for many years, and so many people want this feature, I wonder why they aren’t implementing it. The good news is, someone has written a little utility which will label XY scatter plots in Excel, both for PC and Mac (here’s another link). So it’s possible to do after all — just not easy, and not built-in.

On the other hand, opening the same file with OpenOffice.org Calc and creating the same graph led me to believe it is supported in Calc. The graphing autopilot has a step where I specified the first column as labels:

Step 1, choosing the data

But after following through the rest of the steps — choose chart type, etc etc — the final result has no labels. I fooled around with it for a while, read the documentation and surfed the web, but still couldn’t get it to show the labels. Only after I posted on the OpenOffice.org forums did I find an answer:

  1. Select the data, start the graphing AutoPilot, check “First column as labels” and create the graph
  2. Place the cursor over the unselected graph and right click. Select “Edit”
  3. Select “Insert > Data Labels…” and check “Show Label Text”

I probably would not have solved this on my own. The way to select and unselect charts, and how to modify their properties, is really unintuitive, I’m afraid. Even after fooling with charts a while, I’m still blundering through things like exactly what sequence of actions is necessary to make a chart editable, what I need to do to alter the scale on the axes, and so forth. Even if I had known all that in advance, though, I wouldn’t think to go to the Insert menu to add labels to the chart. I told it to do that when I created the chart — why doesn’t it show them by default? If I didn’t want them to show, I wouldn’t have specified the first column as labels.

I conclude both Excel and OpenOffice.org both have some room for improvement. I’m sure that comes as no surprise! The good news is, OpenOffice.org is a community-driven effort, with an open bug-tracking system and active forums — not to mention it’s Free Software. You know who I’m backing… take ‘em to the mat!

Written by Xaprb

January 19th, 2006 at 9:20 pm

Posted in Desktop

12 Responses to 'How to label Excel and OpenOffice.org XY scatter plots'

Subscribe to comments with RSS

  1. Excel 2004 for OSX has no difficulties opening .csv files correctly.

    bill gates

    2 Feb 06 at 8:01 pm

  2. The major problem in OO that was not resolved in version 2.0 is unarguably the charts functionality. Some people were hoping the new features would be included in the 2.0 release, but the organizers decided it would take too long. I believe that is the main drawback with OO; charts are a pain in the rear. They are unintuitive, hard to use, hard to display what you want… just butt-ugly. I’m not complaining though, just noting a fact. Fortunately, I rarely use charts anymore since I’m not taking any lab classes in school.

    Nathaniel

    25 Feb 06 at 5:28 pm

  3. Thanks for the tips on this and really saved my skin, i was trying to do this all day, i must have rearranged my graph 100 times. All i wanted to do was plot a normal xy graph and the points on it were male or female, i then wanted to add a line to show any correlation. Really easy stuff but very hard to achieve. Thanks to you tho, its done but still very scruffy and not very readable . . but at least the info is there

    match maker

    9 Oct 06 at 10:28 pm

  4. I have wanted to plot labels for years on my excel charts – now I can, thanks!!!

    RPerry

    28 Nov 06 at 6:40 pm

  5. Thanks a lot for this article!
    Note that the site with the Excel plugin has been taken offline. You can still grab the file by using the wayback machine though:
    http://web.archive.org/web/20080111224621/http://www.bmsltd.ie/MVP/MVPPage.asp

    Jan

    26 Aug 08 at 5:44 am

  6. It seems that the plugin has been developed further, and the latest version now resides here:
    http://www.appspro.com/Utilities/ChartLabeler.htm

    Jan

    26 Aug 08 at 5:49 am

  7. Is there a way to tell Excel to get data labels from a third column? I tried the XY scatter plot plugin, but this doesn’t do what I want because it shows the labels on the plot as text; I want the labels in the legend instead. But in Excel 2007 the only way I can get the labels in the legend is by manually adding each label to the legend…inconvenient.

    Connelly Barnes

    12 Mar 09 at 10:42 pm

  8. I found a solution on the Microsoft website for Excel. It provides text for a macro that will add labels to an already made scatter chart.

    http://support.microsoft.com/kb/213750

    Garrett Schmitt

    19 May 09 at 3:58 pm

  9. Has anyone figured out the third column data labeling issue for Excel 2008 Mac? Macros aren’t enabled in this version so the links above don’t appear to apply.

    Aaron

    3 Jun 09 at 11:16 am

  10. I can’t figure this stuff out in MS Office 2007. This is ridiculous. Been spending 2 hours on this tonight! I just want to add a 3rd column label to a scatterplot.

    frustrated

    21 Aug 09 at 11:35 pm

  11. I have tried downloading a couple different of the links above and yet I can’t find them after I download them. Some things I like about Office 2007 but stuff like this DRIVES ME CRAZY! Where is the add-in?

    frustrated

    21 Aug 09 at 11:44 pm

  12. Ok, I figured it out by clicking the little drop down arrow on the top bar (the arrow is to the right of the save and open icons) and then clicking on more commands. Then change to all commands to find “add-ins” that will put a new icon up on that top bar. When you open that and browse that’s how you find out where the program you download should go. Appros goes to a different folder. So copy just the add-in file from the appros folder into the add-in folder (using my computer and/or my documents). After that the XY labels appeared in my add-ins.

    frustrated

    21 Aug 09 at 11:55 pm

Leave a Reply