### example 2 vt stacked bar
d1 <- dPlot(
x ="Month" ,
y = "UnitSales",
groups = "Channel",
data = data,
type = "bar"
)
d1$xAxis(orderRule = "Date")
d1$legend(
x = 60,
y = 10,
width = 700,
height = 20,
horizontalAlign = "right"
)
d1