Hi,
I have a reactive value which comes from a Highcharts (rCharts) plot
a <- hPlot(freq ~ topics5,
data = getChart(datos()),
type = 'column',
group = 'topics15',
group.na = 'NA\'s')
a$set(dom = 'chart')
a$plotOptions(column = list(stacking = "normal",
cursor = 'pointer',
point = list(events = list(click =
"#! function() {
Shiny.onInputChange('click', {
topic:
this.name + '-' +
this.series.name })
} !#"))))
I use this input$click$topic to filter some data which I present in a renderDataTable. Everything works fine but I would also like to be able to reset this value.
I would like to implement the following pseudo-code but all my attempts have failed miserably :(
miTopic <- reactiveValues(var = NULL)
observe(
if (button != pressed)
miTopic$var = input$click$topic
else
miTopic$var = NULL
)
Any ideas?
Carlos