highchart plotLines

23 views
Skip to first unread message

Alexander Medvedevskikh

unread,
Jun 30, 2016, 5:40:22 AM6/30/16
to Shiny - Web Framework for R
Hi 
I use highcharter and shinydashboard. 
I would like to plot the line on the bar chart so i use this part of code

hc_yAxis(plotLines = list(list(color = '#FF0000', width = 1, 
                                       value = 12,
                                       dashStyle = 'longdash',
                                       label = list(text = "This is a plotLine"))))

this work OK in my RStudio Viewer and in ShinyDashboard app.


but when I change fixed value 12 to max(df.docs.distr$date.qty) it doesn't work in ShinyDashboard but still work in RStudio Viewer.

hc_yAxis(plotLines = list(list(color = '#FF0000', width = 1, 
                                       value = max(df.docs.distr$date.qty),
                                       dashStyle = 'longdash',
                                       label = list(text = "This is a plotLine"))))

How to make it work in ShinyDashboard?
Reply all
Reply to author
Forward
0 new messages