# propbars2

How to download and try this example

    Usage: pl -gif propbars2.htm
    Source: Peace Pledge Union / NI magazine

    //  specify the data using proc getdata

    #proc getdata
    //     USA    Brit    USSR   France   Other
    data:	49 	25	10	7	9

    //  define plotting area using proc areadef
    #proc areadef
      title: Main Arms Exporters
      titledetails: align=C
      rectangle: 1 1 3 4
      xrange: 0 2
      yrange: 0 100

    //  do light green segment using proc bars
    #proc bars
      barwidth: 1.0
      lenfield: 1
      color: rgb(.6,.85,.8)
      outline: no
      labelword: USA @@N%
      labeldetails: adjust=0,-0.2
      stackfields: *
      #saveas: B

    //  do dark green segment
    // Use stackfields to position bars beyond the first set of bars
    #proc bars
      #clone B
      lenfield: 2
      labelword: Britain @@N%
      color: teal

    //  do orange segment
    // Use stackfields to position bars beyond the first two sets of bars
    #proc bars
      #clone B
      lenfield: 3
      labelword: USSR @@N%
      color: lightorange

    //  do pink segment
    // Use stackfields to position bars beyond the first three sets of bars
    #proc bars
      #clone B
      lenfield: 4
      color: pink
      labelword: France @@N%
      labeldetails: adjust=0,-0.1

    //  do tan segment
    // Use stackfields to position bars beyond the first three sets of bars
    #proc bars
      #clone B
      lenfield: 5
      color: tan2
      labelword: Other @@N%