### example 30 Stacked Area 100%
d1 <- dPlot(
UnitSales ~ Month,
groups = "Channel",
data = subset(data, Owner %in% c("Aperture","Black Mesa")),
type = "dimple.plot.area"
)
d1$xAxis(type = "addCategoryAxis", orderRule = "Date")
d1$yAxis(type = "addPctAxis")
d1$set(
legend = list(
x = 200,
y = 10,
width = 500,
height = 20,
horizontalAlign = "right"
)
)
d1