# bars5

How to download and try this example
Another example of stacked clustered bars

    Usage: pl -gif bars5.htm

    #proc getdata
    data:
    //   WestA    WestB  CentA    CentB  EastA   EastB
      	3 	6 	4 	3 	4 	6
      	5 	8 	5 	7 	4 	5
      	7 	9 	3 	9 	2 	3
      	4 	7 	7 	8 	9 	3
      	3 	6 	4 	5 	7 	6

    #proc areadef
      rectangle: 1 1 3.5 2
      xrange: 0 6
      yrange: 0 20

    #proc xaxis
      stubrange: 1 8
      tics: none
      stubs: text
    	1996
    	1997
    	1998
    	1999\n(est)
    	2000\n(est)

    #proc yaxis
      stubs: inc 5
      grid: color=gray(0.8)

    // Do left members..
    #proc bars
      lenfield: 1
      color: rgb(.8,.6,.6)
      stackfields: 2
      cluster: 1 / 3
      legendlabel: West, group A

    #proc bars
      lenfield: 2
      color: rgb(.9,.6,.6)
      cluster: 1 / 3
      legendlabel: West, group B

    // Do middles..
    #proc bars
      lenfield:  3
      color: rgb(.6,.8,.6)
      stackfields: 4
      cluster: 2 / 3
      legendlabel: Central, A

    #proc bars
      lenfield: 4
      color: rgb(.6,.9,.6)
      cluster: 2 / 3
      legendlabel: Central, B

    // Do rights..
    #proc bars
      lenfield: 5
      color: rgb(.6,.6,.6)
      stackfields: 6
      cluster: 3 / 3
      legendlabel: East, group A

    #proc bars
      lenfield: 6
      color: rgb(.6,.6,1)
      cluster: 3 / 3
      legendlabel: East, group B

    #proc legend
      location: max+0.3 max
      textdetails: size=9