Well it will get lost even in the case of ListPlot
if you go to continuous solid line case:
ListPlot[data, Joined -> True]
In both cases the fix is to bring back points somehow, for example using Mesh
:
ListLinePlot[data, Mesh -> All, MeshStyle -> Opacity[0]]
OR any similar trick in that manner:
Show[ListLinePlot[data], ListPlot[data, PlotStyle -> Opacity[0]]]
The reason for this is probably the fact that in bare solid-line case you get only line segments in resulting Graphics
primitives (check with InputForm[..."your plot"...]
). And line segments are wrong to wrap Point
tool-tips around.
@MikeHoneychurch recommendation will work too; if you want to see only the solid line (with no point marks) something like empty string this will do
ListLinePlot[data, PlotMarkers -> ""]
To answer Mike's comment on Tooltip
on line segments - it does work if constructed properly, for example (otherwise mma wouldn't know what to show when mouseover happens, I think):
data = Table[{x, x^2}, {x, 0, 10, .1}];
Graphics[Tooltip[Line[#]] & /@ Partition[data, 2, 1]]
ListLinePlot
in version 7. Should this be taggedversion-9
? $\endgroup$ – Mr.Wizard Dec 18 '12 at 8:53