0%UnitSalesRegularPriceTier/ChannelBlack MesaApertureTyrell CorpRekallMomCorpLexCorpStark IndWayne Ent

  1. ### example 12 horizontal stacked grouped 100% bar
  2. d1 <- dPlot(
  3. x = "UnitSales",
  4. y = c("PriceTier","Channel"),
  5. groups = "Owner",
  6. data = data,
  7. type = "bar"
  8. )
  9. d1$xAxis(type = "addPctAxis")
  10. #good test of orderRule on y instead of x
  11. d1$yAxis(type = "addCategoryAxis")
  12. d1$legend(
  13. x = 200,
  14. y = 10,
  15. width = 400,
  16. height = 20,
  17. horizontalAlign = "right"
  18. )
  19. d1