Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I have an Excel spreadsheet with numbers on two columns and names in a 3rd. I would like to plot a 2d graph of the first 2 columns and see the respective name from the 3rd column as a tooltip.

I understand how to create the 2d graph and how to create tooltips but not how to tell Mathematica that the 3rd column is essentially labelling the first two and for it to show me those names when I hover over each point. Is it possible?

share|improve this question
    
You could also consider including some sample data which will make answering more comfortable. –  Yves Klett Feb 22 at 20:25
add comment

1 Answer

Starting with some test data one way is to map the 3 entries onto a list of Tooltips:

data = {{1, 7, "Heigh-ho,"}, {2, 9, "Heigh-ho"}, {3, 10, "It's"}, {4, 
    8, "home"}, {5, 7, "from"}, {6, 4, "work"}, {7, 1, "we"}, {8, 2, 
    "go"}};

tipdata = Tooltip[{#[[1]], #[[2]]}, #[[3]]] & /@ data;

ListPlot[tipdata, PlotMarkers -> {Automatic, Medium}]

Mathematica graphics

share|improve this answer
    
Thank you very much! –  Dieter Feb 22 at 20:08
    
@Dieter you´re welcome! –  Yves Klett Feb 22 at 20:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.