Plotly (plotly.js does not (yet) support horizontal legend items)

Hello to everyone,

I tried to implement in my code the following code from the following plotly example:

When I run my shinyapp, although that it runs, when I select a country (in my example it is players) I don’t get back the right data or none data for some measurements (Years).

In Rstudio I get the following message:
"Warning in Dataset1$Player == input$name :
longer object length is not a multiple of shorter object length
Warning: plotly.js does not (yet) support horizontal legend items
You can track progress here: "

Thanks in advance for the replies.

Looks like this an issue with the R API. You may just need to upgrade to the latest version. If the problem persists, please ask your question in #api/r