r-devel / translations-dashboard

Dashboard to monitor status of translations in R
https://contributor.r-project.org/translations-dashboard
8 stars 6 forks source link

Language selection #3

Closed benubah closed 7 months ago

benubah commented 2 years ago

When All is selected in the language selector, the graph is not updated. Also when the a language is selected and cleared (i.e. the language selector is empty, the graph does not reflect any changes back to default

MeetDarkPow commented 2 years ago

Hi Ben, I tried a lot of ways but not found a way to fix this up. I also tried to implement my own js to select a default value to the filter but it only selects for windows load option.

function filter_default() {
    document.getElementById("language").getElementsByClassName("selectized") 
[0].selectize.setValue("All", false);
 }
window.onload = filter_default;

I guess this is bug with crosstalk and plotly already reported Link 1 - https://github.com/plotly/plotly.R/issues/1346 Link 2 - https://github.com/rstudio/crosstalk/issues/118

hturner commented 7 months ago

This issue appears to have been resolved, probably by updates to crosstalk.