rbokeh icon indicating copy to clipboard operation
rbokeh copied to clipboard

Scatterplot hover sometimes does not display values for certain columns

Open dseynaev opened this issue 8 years ago • 1 comments

The following works correctly for me: rbokeh::ly_points(figure(), a, b, data.frame(a = c(1,2), b = c(3,4)), hover = "@a and @b")

Curiously this does not: rbokeh::ly_points(figure(), a, ab, data.frame(a = c(1,2), ab = c(3,4)), hover = "@a and @ab")

The value shows up as '???'

I suspect that names collide when one of them starts with another as a substring.

R 3.3.3, rbokeh_0.5.0 rj_2.1.0-11, Firefox 54.0 Ubuntu 16.04

dseynaev avatar Jun 22 '17 07:06 dseynaev

This also seems to work (changed the order of appearance in the hover template): rbokeh::ly_points(figure(), a, ab, data.frame(a = c(1,2), ab = c(3,4)), hover = "@ab and @a")

dseynaev avatar Jun 22 '17 08:06 dseynaev