Alter the bar orientation

cjs_bar_orientation(p, orientation = c("vertical", "horizontal"))

Arguments

p

a chartjs object

orientation

one of 'vertical' or 'horizontal'

Value

An object of class htmlwidget