mages / googleVis

Interface between R and the Google Chart Tools
https://mages.github.io/googleVis/
360 stars 155 forks source link

gvisOrgChart formatting connection lines and node borders #86

Open NovasTaylor opened 5 years ago

NovasTaylor commented 5 years ago

Hello,

I am having trouble finding documentation on how to change the line width and color for lines connecting the boxes (nodes) and the node borders. Specifically how to do this within the gvisOrgChart function call.

Suggestions greatly appreciated!

My current call:

#  color =  box fill color
orgChart <- gvisOrgChart(staffInfo, 
              idvar = "employeeBox", 
              parentvar = "managerBox", 
              tipvar = "", 
              options=list(width=600, 
                           height=250,
                           allowHtml = TRUE,
                           size='large',
                           allowCollapse=TRUE,
                           color='#fbfbf0'
                           )
              )
mages commented 5 years ago

Looking at the Google documentation for Org Chart , I don't think this is directly possible from googleVis.

NovasTaylor commented 5 years ago

I'm also open to an indirect solution if I can somehow leverage the JavaScript behind the package. The code will be presented to my management soon, and I foresee them asking to change the line colors -"because management." :)