I have some {date, value} data:
data = Transpose[{AbsoluteTime /@ Thread[{2012, Range[12], 15}],
RandomInteger[10, 12]}]
Normally I do initial tests with DateListPlot and then implement with ListPlot or ListLinePlot for efficiency. However I just tried this:
DateListPlot[
Table[With[{i = i},
EventHandler[data[[i]], "MouseClicked" :> {Print["hello"]}]], {i,
12}]
]
and got this error message
DateListPlot::dtvals: Unable to automatically determine horizontal coordinates for the given data and DataRange.

Whereas if I switch to ListPlot or ListLinePlot it works fine:
ListPlot[
Table[With[{i = i},
EventHandler[data[[i]],
"MouseClicked" :> {Print["hello " <> ToString[i]]}]], {i, 12}]
]

Can anyone explain why EventHandler would not work within DateListPlot (hopefully this is not a RTFM question!)?
Problem exists with 8.0.4 and 9.0.1 on Mac 10.6.8
Tooltipseems to be only wrapper that works withDateListPlot.EventHandler,Button,PopupWindow... work withListPlotbut not withDateListPlot. A workaround is to postprocess to replaceTooltipwith a wrapper of your choice as in Jens' answer in this Q/A:DateListPlot[Table[With[{i = i}, Tooltip[data[[i]]]], {i, 12}]] /. Tooltip[x_, ___] :> EventHandler[x, "MouseClicked" :> {Print["hello"]}]– kguler Feb 7 at 1:15ListPlotanyway becauseDateListPlotis so slow (presumably due to slow date and time functions that are called). So a workaround is unnecessary -- i.e. I'll prototype withListPlotas well as deploy with it. Was just wondering if what I observed is known and if so whether it is by design or a bug. – Mike Honeychurch Feb 7 at 1:29DateListPloton Windows (both mma versions 8.0.4 and 9.0). – kguler Feb 7 at 1:31EvetnHandler? – Mike Honeychurch Feb 7 at 3:07