### example 38 Vertical Grouped Stacked Area
d1 <- dPlot(
x = "UnitSales",
y = c("Owner","Month"),
groups = "SKU",
data = subset(data, Owner %in% c("Aperture","Black Mesa")),
type = "area",
bounds = list(x=90,y=30,height=320,width=330),
lineWeight = 1,
barGap = 0.05,
height = 400,
width = 590
)
d1$xAxis(type = "addMeasureAxis")
d1$yAxis(type = "addCategoryAxis", grouporderRule = "Date")
d1$legend(
x = 430,
y = 20,
width = 100,
height = 300,
horizontalAlign = "left"
)
d1