Skip to content

plotly#554: crosstalk highlighting/linking works selectively  #796

Closed
@synikitin

Description

@synikitin

image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions