### example 14 horizontal marimekko
d1 <- dPlot(
Channel ~ UnitSales,
groups = "Owner",
data = data,
type = "bar"
)
d1$yAxis(type = "addAxis", measure = "UnitSales", showPercent = TRUE)
d1$xAxis(type = "addPctAxis")
d1$legend(
x = 200,
y = 10,
width = 400,
height = 20,
horizontalAlign = "right"
)
d1