-
Notifications
You must be signed in to change notification settings - Fork 634
plotly#554: crosstalk highlighting/linking works selectively #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Interesting. Can you provide the output of |
The issue seems to be with findNestedMatches function. There is a type mismatch, sometimes the
Note that I am only showing the initial lines of the function. I could do a pull request, but I am not sure about the branch. |
@slavaua87 does this fix it? ^^^ |
No, same problem. |
Yes. Thanks! |
The plotly piece is
ggplotly(p) %>% highlight(off = "plotly_unhover", color = "yellow")
.I cannot give a reproducible example because the data is proprietary, and I do not really understand the issue to reproduce it with open data. The image has as much as I have. Little tinkering in a debugger shows that the issue seems to come up when hay.every is not an array when it should be one.
The issue emerges only for some number of data points. For sample size of 8, chart shows highlighting and brushed linking works across multiple charts, but with 9 points, neither work. Other combinations of points also work or do not work without an obvious pattern. This somehow has to be related to the for loop inside which hay.every is evaluated.
There also may be a connection to what R type determines the color of points. For the sample sizes that give an error, the issue goes away, at least for the number of points I tried, if I change from character to integer type.
The text was updated successfully, but these errors were encountered: