Type : CREATION_INTERNE
Data is manually created in the 'DATA step' 'countries' using the 'cards' statement.
| 1 | ods html file='c:\test.html' gpath='c:\' ; |
| 2 | goptions reset=all device=png |
| 3 | xmax=20 ymax=12 /* make PNG bigger */ |
| 4 | ftext='Arial' htext=4pct /* use some nice looking text */; |
| 1 | DATA countries; |
| 2 | INPUT country $ 1-14 region $16-26 Machinery; |
| 3 | CARDS; |
| 4 | Taiwan Asia 6.1 |
| 5 | Korea Asia 4.6 |
| 6 | Malaysia Asia 4.4 |
| 7 | Malaysia2 Asia 3.9 |
| 8 | Malaysia4 Asia 3.9 |
| 9 | Malaysia5 Asia 1.5 |
| 10 | U.S. U.S. 39.1 |
| 11 | Belgium Europe 2.6 |
| 12 | Germany Europe 7.8 |
| 13 | United Kingdom Europe 3.9 |
| 14 | France Europe 3.9 |
| 15 | Santa Antarctica 1.1 |
| 16 | Bob Antarctica 1.0 |
| 17 | Cydonia Mars 1.1 |
| 18 | Tims House Mars 1.0 |
| 19 | China Asia 10.2 |
| 20 | Malaysia3 Asia 3.9 |
| 21 | ; |
| 22 | RUN; |
| 1 | PROC GCHART; |
| 2 | pie region / angle=320 |
| 3 | slice=outside |
| 4 | percent=inside |
| 5 | value=none |
| 6 | sumvar=Machinery |
| 7 | detail_percent=best |
| 8 | detail=country |
| 9 | descending ; |
| 10 | RUN; QUIT; |
| 1 | ods html close ; |