Open JohnCoene opened 3 years ago
Hi Maya, great package as usual!
An idea would be to set a shiny input value on click, probably somewhere here: https://github.com/MayaGans/githubCalendar/blob/f2dddaf15c74e873c577994dce4a46a0496e81e6/inst/htmlwidgets/js/makeChart.js#L101
.on("click", function(event){ if(HTMLWidgets.shinyMode){ Shiny.setInputValue(el.id + '_click', event); } })
Not too familiar with d3 so I could be getting this totally wrong.
Oh no. I just realised it comes later in the book (Chapter 18) :man_facepalming:
Hi Maya, great package as usual!
An idea would be to set a shiny input value on click, probably somewhere here: https://github.com/MayaGans/githubCalendar/blob/f2dddaf15c74e873c577994dce4a46a0496e81e6/inst/htmlwidgets/js/makeChart.js#L101
Not too familiar with d3 so I could be getting this totally wrong.