Hi - this happens when the key isn't unique. You can add a new column
called "id" with unique keys like so:
mtcars %>% dplyr::mutate(id = 1:n()) %>%
ggvis(~wt, ~mpg, fill = ~factor(cyl)) %>%
layer_points(key := ~id) %>%
add_tooltip(function(df) df$displ)
That said, it probably would be good for ggvis to give a warning when
non-unique keys are used, since we've seen this issue come up before.
-Winston
> --
> You received this message because you are subscribed to the Google Groups
> "ggvis" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ggvis+un...@googlegroups.com.
> To post to this group, send email to
gg...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.