| 1 | <html><h1>pie1</h1><img src="pie1.gif"><p> |
| 2 | <a href="gall.using.html">How to download and try this example</a><br> |
| 3 | |
| 4 | <pre><b>Usage: pl -gif pie1.htm |
| 5 | <hr></b> |
| 6 | |
| 7 | #proc page |
| 8 | #if @DEVICE in gif,png |
| 9 | scale: 0.7 |
| 10 | #endif |
| 11 | |
| 12 | // <b> specify data using <a href="../doc/getdata.html">proc getdata</a></b> |
| 13 | #proc getdata |
| 14 | data: Brazil 22 |
| 15 | Columbia 17 |
| 16 | "Costa Rica" 22 |
| 17 | Guatemala 3 |
| 18 | Honduras 12 |
| 19 | Mexico 14 |
| 20 | Nicaragua 28 |
| 21 | Belize 9 |
| 22 | United\nStates 21 |
| 23 | Canada 8 |
| 24 | |
| 25 | // <b> render the pie graph using <a href="../doc/pie.html">proc pie</a></b> |
| 26 | #proc pie |
| 27 | firstslice: 90 |
| 28 | explode: .2 0 0 0 0 .2 0 |
| 29 | datafield: 2 |
| 30 | labelfield: 1 |
| 31 | labelmode: line+label |
| 32 | center: 4 4 |
| 33 | radius: 2 |
| 34 | colors: yellow pink pink pink pink yellow pink |
| 35 | labelfarout: 1.05 |