# Tooltip issue using Dataset

When I try to create a tooltip for a Dataset item, I get ... instead of the item value. See the toy code example below:

tooltipValue =  Plot[Sinc[x], {x, 0, 10}];

Dataset[{
<|"colA" -> 1, "colB" -> Tooltip[1, tooltipValue]|>
, <|"colA" -> 2, "colB" -> Tooltip[2, tooltipValue]|>
}]


How can I force the value in column B to be 1 and 2 instead of ... ?

• Use option ItemDisplayFunction -> (# &) in Dataset. Oct 3 at 20:25

From the version 12.1 on, you can use option ItemDisplayOption -> (# &). By default, it is set to Automatic, which does some preprocessing and converts large items to ellipsis.

tooltipValue = Plot[Sinc[x], {x, 0, 10}];

Dataset[{<|"colA" -> 1, "colB" -> Tooltip[1, tooltipValue]|>, <|
"colA" -> 2, "colB" -> Tooltip[2, tooltipValue]|>},
ItemDisplayFunction -> (# &)]


• Also see Identity for the ItemDisplayFunction. Oct 3 at 22:23
• @Edmund, I did try that but ItemDisplayFunction -> Identity did not work. Oct 3 at 22:48
• ItemDisplayFunction -> (Identity[#] &) works but this is less elegant than your solution. Oct 3 at 23:07
• Read ItemDisplayFunction's documentation. The function takes 3 parameters. ({i, p, d} |-> i) for example. Oct 4 at 23:43
• @Edmund, yes, I know. But I don't see any advantage (or difference) in using Identity instead of a shorthand pure function. Oct 5 at 6:30