r - rCharts for some functions such as timeline in shiny app -
i using rcharts in shiny app. rcharts useful bundle visualization. when move mouse above figure ,then hint me messege. example, have dataframe !data.frame(date=c(....),revenue=c(....))
then when create plot , when mouse moved on tell date , revenue,
but want alter message such when mouse point ,it tell me happend in day , can alter dataframe :data.frame(date=c(....),revenue=c(....),events=c(...))
if comes ture ,it easy check events have happend influence revenue. if body knows how realize ,please tell me! thanks.
if understand correctly, want adjust tooltip display events
column.
here's illustration want plot disp
column against hp
column, tooltip hover should display gear
column.
n<-nplot(disp~hp,data=mtcars,type='linechart') n$chart( tooltipcontent="#! function(key, x, y, e){ homecoming e.point.gear } !#" )
you can add together whatever html want tooltipcontent
format things liking.
r shiny interactive rcharts
No comments:
Post a Comment