Skip to content

Instantly share code, notes, and snippets.

@jbolton9
Created April 12, 2015 23:23
Show Gist options
  • Save jbolton9/75ee7e407d0c1a660123 to your computer and use it in GitHub Desktop.
Save jbolton9/75ee7e407d0c1a660123 to your computer and use it in GitHub Desktop.
Cell Phone Subscriptions with styles/axes
Country 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013
Albania 0.2 0.3 0.9 11.9 26.1 34 39.2 47.9 60.1 73.4 58.9 78.2 85.5 98.3 110.7 116.2
Algeria 0.1 0.2 0.3 0.3 1.4 4.4 14.6 40.2 60.9 78.5 75.7 90 88.4 94.3 97.5 100.8
Andorra 22.1 32.1 36 43.3 45.8 68.6 73.8 79.5 84.3 78.1 80.3 82.1 84.1 83.5 81.5 80.7
Angola 0.1 0.2 0.2 0.5 0.9 2.3 4.6 9.7 17.8 28 37 42.8 48.1 59.8 61.4 61.9
Antigua and Barbuda 2 11.2 28.3 31.7 47.7 57 66.1 104.2 132 133.2 160 156.3 192.6 199.7 143 127.1
Argentina 7.4 10.5 17.6 18.1 17.5 20.7 35.3 57.3 80.8 102.7 117.2 131.1 141.4 149.1 156.6 162.5
Armenia 0.3 0.3 0.6 0.8 2.3 3.8 6.7 10.5 42 62.8 48.4 73.8 130.4 108.3 111.9 112.4
Australia 26.2 33.2 44.5 57.1 64.3 71.9 81.5 89.8 94.7 100.1 102.2 100.7 100.4 104.6 105.6 106.8
Austria 28.6 53.1 76.3 81.3 83.2 89.3 97.5 105.2 112.1 119.3 129.7 136.6 145.7 154.4 160.5 156.2
Azerbaijan 0.8 4.6 5.2 8.9 9.6 12.6 17.2 26.2 38.4 51.5 73.8 86.3 100.1 110 108.8 107.6
Bahamas, The 2.8 5.4 10.6 20 39.4 38.7 57.7 69.2 75.4 109.3 102.8 101.2 118.8 81.6 80.7 76.1
Bahrain 14.9 20.8 30.8 42.9 53.1 57.4 79.2 87.2 95.4 108.1 129.1 117.7 125.2 131 161.2 165.9
Bangladesh 0.1 0.1 0.2 0.4 0.8 1 2 6.3 13.2 23.5 30.2 34.4 44.9 55.2 62.8 74.4
Barbados 4.5 7.6 10.7 19.8 36.1 51.7 73.5 75.4 86.2 93.2 104 120.8 124.8 123.5 123.3 108.1
Belarus 0.1 0.2 0.5 1.4 4.7 11.4 23 42.4 62 72.6 85.1 101.7 108.9 113.2 113.5 118.8
Belgium 17.2 31.1 54.8 74.7 78.4 82.9 87.5 91.4 93 100.6 105.3 108.4 111.1 113.5 111.3 110.9
Belize 1.6 2.8 7 16 20.5 23.4 28.3 35.3 42.3 41.3 54.5 53.7 62.9 70.3 53.2 52.6
Benin 0.1 0.1 0.8 1.7 3 3.1 5.8 7.3 12.5 23.6 40.4 54.5 74.4 79.4 83.7 93.3
Bolivia 2.9 5.1 6.9 9 11.6 14.2 19.6 25.9 30.2 33.6 51.2 64.7 70.7 80.9 90.4 97.7
Bosnia and Herzegovina 0.7 1.4 2.4 11.5 19.2 27.6 36.2 41.1 48.7 63.3 82.3 84.5 80.9 82.6 87.6 91.1
Botswana 0.9 5.3 12.7 18.6 18.4 24.3 28.2 30.1 43.4 60.1 76.8 96 120 146 153.8 160.6
Brazil 4.3 8.7 13.3 16.2 19.4 25.5 35.7 46.3 53.1 63.7 78.6 87.5 100.9 119 125 135.3
Brunei Darussalam 15.5 20.3 28.6 42.2 44.4 50.2 56.1 63.3 80.4 96 102.8 104.7 108.6 109 113.9 112.2
Bulgaria 1.6 4.3 9.2 19.5 33 44.8 61.1 81.3 108.3 130.9 139 140.4 138 142.8 148.1 145.2
Burkina Faso 0 0 0.2 0.6 0.9 1.9 3 4.7 7.4 13.1 20.6 25.3 36.7 48 60.6 66.4
Burundi 0 0 0.2 0.5 0.7 0.9 1.3 2 2.5 3.2 5.6 10.3 18.2 20.1 22.8 25
Cabo Verde 0.2 1.9 4.5 7 9.4 11.4 13.9 17.1 22.6 31.5 57.3 59.8 76.3 80.8 86 100.1
Cambodia 0.5 0.7 1.1 1.8 3 3.9 6.6 8 12.7 18.8 30.4 44.3 56.7 94.2 128.5 133.9
Cameroon 0 0 0.6 2.6 4.2 6.3 8.7 12.4 16.8 23.8 31.4 39.8 41.9 49.6 60.4 70.4
Canada 17.7 22.7 28.4 34.4 37.9 42.1 47.1 52.8 57.5 61.5 66.2 70.5 75.7 77.8 79.6 80.6
Cayman Islands 13.7 21.1 25.7 39.2 42.5 45.7 71.5 166.5 185 197.2 185.8 200.3 181.2 171 171.7 167.8
Chile 6.4 14.8 22 32.6 39.5 45.4 57.3 64.7 75.4 83.7 87.9 96.8 115.8 128.9 137.1 134.3
China 1.9 3.4 6.7 11.2 15.9 20.7 25.6 29.8 34.8 41 47.8 55.3 63.2 72.1 80.8 88.7
Colombia 4.7 5 5.7 8.1 11.2 14.8 24.5 50.6 67.9 76.3 91.6 92 95.8 98.1 102.9 104.1
Congo, Dem. Rep. 0 0 0 0.3 1.1 2.4 3.8 5.1 7.9 11.5 16.9 15.6 19 24.5 30.6 41.8
Congo, Rep. 0.1 0.2 2.2 4.7 6.8 9.8 11.1 15.8 25.2 34.3 46.6 73.8 90.4 91.9 98.8 104.8
Costa Rica 2.9 3.6 5.4 8.1 12.3 18.7 21.7 25.5 32.9 33.8 41.6 42.4 67 87.7 111.9 146
Cote d'Ivoire 0.6 1.6 2.9 4.4 6.2 7.6 9.8 13.5 23 41.6 57.2 70.9 82.2 89.4 91.2 95.4
Croatia 4 6.5 23.1 39.5 52.2 57.5 64.4 83.2 100.4 115.2 104.5 107.5 113.6 118.3 115.4 114.5
Cuba 0 0 0.1 0.1 0.2 0.3 0.7 1.2 1.4 1.8 2.9 5.5 8.9 11.7 14.9 17.7
Cyprus 12.8 16.4 23.1 32.7 42.7 55.3 64.8 75.8 82.8 93 94.4 89.6 93.7 97.7 98.4 96.4
Czech Republic 9.4 18.9 42.4 67.9 84.3 95.1 105.6 115.1 120.7 128 132.4 124.6 122.6 124.1 126.8 127.7
Denmark 36.4 49.4 63 74 83.4 88.6 95.7 100.6 107.1 115.4 119.3 123.7 115.7 128.7 130.3 127.1
Djibouti 0 0 0 0.4 2 3 4.5 5.7 5.7 8.7 13.9 15.7 19.9 22.8 24.7 28
Dominica 0.9 1.1 1.7 11.1 17.4 34 59.5 73.7 101.1 125.7 128.4 138.7 148.3 152.6 152.5 130
Dominican Republic 2.5 5 8.1 14.4 19 23.1 27.5 38.8 48.6 57.3 74 87.3 88.8 86.4 86.9 88.4
Ecuador 2 3.1 3.8 6.7 12 18.1 26.2 45.3 60.5 69.7 80.5 89.7 98.5 100.6 106.2 111.5
Egypt, Arab Rep. 0.1 0.7 2.1 4.2 6.6 8.3 10.8 19 24.7 40.5 54.7 72.1 90.5 105.1 119.9 121.5
El Salvador 2.3 8.6 12.5 14.3 14.8 19.1 30.3 39.7 63.2 100.2 113 122.4 123.8 132.9 137.3 136.2
Equatorial Guinea 0.1 0.1 1 2.8 5.8 7.3 10.6 16.1 19.3 23.5 27.4 29.5 57.4 66.9 68.1 67.5
Estonia 17.8 28.1 40.8 48 65.4 78.4 94.3 109.1 125.8 128.1 124.2 120.5 127.3 143.9 160.4 159.7
Faeroe Islands 14.5 23.5 36.5 52 72.7 78.7 84.7 85.5 101.1 105.3 110.6 114.9 119.9 118 118.6 120.7
Fiji 1 2.9 6.8 9.9 11 13.4 17.4 24.9 34.4 63.4 71.1 75.1 81.1 83.8 98.2 105.6
Finland 55.2 63.4 72 80.5 86.9 91.1 95.4 100.5 107.6 114.9 128.4 144.1 156.3 165.9 172.3 171.6
France 19.1 36.4 49.1 62.1 64.3 68.9 73 78.3 83.5 89 92.7 92.1 91.4 94.1 97.4 98.5
French Polynesia 4.8 9.4 16.8 27.9 21.3 24.2 38.1 47.1 59 67.2 71.2 78.5 80.5 82.3 82.5 85.6
Gabon 0.8 0.7 9.8 11.9 21.7 22.8 36.3 53.4 63.6 80.8 87.7 95.4 103.5 148.7 179.5 214.8
Gambia, The 0.4 0.4 0.5 4.3 7.7 11.1 12.6 17.2 27.3 52.3 73.9 80.6 88 80.8 85.2 100
Georgia 1.2 2.8 4.1 6.4 10.9 15.6 18.6 26.2 38.3 58.7 62.4 64.5 90.6 101.3 107.8 115
Germany 16.7 28.1 57.7 67.1 70.7 77.3 85.1 94.6 102.3 115.1 126.6 126.2 106.5 109.7 111.6 120.9
Ghana 0.2 0.4 0.7 1.3 2 3.9 8.1 13.4 23.7 33.8 50.1 63.8 71.9 85.3 101 108.2
Greece 18.8 35.7 54 72.3 84.5 81 84.5 92.9 99.3 111.1 124.5 119.8 110.6 109.1 120.1 116.8
Greenland 15.9 24.1 26.9 28.2 35.2 52.4 68.6 81.6 94.7 116.9 98.5 94.5 101.4 103.7 104.7 106
Grenada 1.4 2 4.2 6.3 7.4 41.3 42.2 45.5 44.7 49.6 57.8 109.7 116.5 115 123.2 125.6
Guatemala 1 3.1 7.6 10 13.4 16.9 25.6 35.6 55.2 89.3 109.5 123.7 126 132.5 137.8 140.4
Guyana 0.2 0.4 5.4 10.1 10.6 18.3 22.7 37 52.3 69.9 57.7 62.5 71.3 66.9 68.8 69.4
Haiti 0.1 0.3 0.6 1 1.6 3.6 4.4 5.4 12.8 26.3 33.2 37.4 40.4 41.9 59.9 69.4
Honduras 0.6 1.3 2.5 3.7 5 5.7 10.5 18.6 31.8 58.3 84.8 112.3 124.7 103.7 92.9 95.9
Hong Kong SAR, China 48.2 63.5 79.7 83.8 92.5 106.4 119.1 123.9 136.7 155 166.2 179.8 195.7 215.5 229.2 237.4
Hungary 10.4 15.9 30.1 48.7 67.7 78.3 86.3 92.3 98.9 109.6 121.7 117.6 119.9 116.9 116.1 116.4
Iceland 37.8 62 76.4 87.4 90.8 96.5 98.9 95.4 100.4 106.9 108.9 108.3 107.2 106.8 108.1 108.1
India 0.1 0.2 0.3 0.6 1.2 3.1 4.7 8 14.5 20.2 29.5 44.1 62.4 73.2 69.9 70.8
Indonesia 0.5 1.1 1.8 3.1 5.4 8.5 13.7 20.9 28 40.4 60 68.9 87.8 102.5 114.2 125.4
Iran, Islamic Rep. 0.6 0.8 1.5 3.1 3.4 5 7.3 12.1 21.7 41.5 59.2 71.5 72.6 74.3 76.1 84.2
Ireland 25.5 44.7 64.7 76.8 76.2 87.3 94.5 102.7 111 115.9 116 106.7 105.2 108.5 107.2 102.8
Israel 37.2 48.9 73.2 89.7 101 104.2 111.7 117.5 124.3 128.5 126.4 124 122.8 122 120.7 122.8
Italy 36 53.3 74.1 89.6 94.3 98.1 107.7 121.9 136.1 151 150.9 149.5 154.8 158.1 159.6 158.8
Jamaica 3.1 5.6 14.2 22.9 47.4 59.6 68.9 73.9 84.4 99.1 100.2 108.3 116.1 106.9 98 102.2
Japan 37.8 45.3 53.1 59.4 64.3 68.5 72.2 76 78.5 84.4 86.7 91.3 96.8 104.3 110.9 117.6
Jordan 1.8 2.5 8.2 17.9 24.9 26.6 31.9 59.9 80 84.4 89.9 97.3 102.6 111.2 128.2 141.8
Kazakhstan 0.2 0.3 1.4 4 7 9 16.4 35.8 51.1 80 95.8 108.4 121.9 156.8 185.8 184.7
Kenya 0 0.1 0.4 1.9 3.6 4.7 7.3 12.9 20 30.1 42 48.6 61 66.8 71.2 71.8
Kiribati 0 0.2 0.4 0.5 0.6 0.6 0.7 0.7 0.8 0.8 1.1 10.3 10.8 13.9 15.9 16.6
Korea, Rep. 30.8 51.2 58.3 62.9 69.7 72.1 78.2 81.5 85 93.3 95.3 99.5 104.8 107.7 109.4 111
Kuwait 14.5 16.5 25 44.3 59.9 67.1 80.8 60.2 48.8 55.8 55.5 91.9 133 157.9 156.9 190.3
Kyrgyz Republic 0 0.1 0.2 0.5 1.1 2.8 5.2 10.7 24.8 42.2 65.3 85.2 98.9 116.2 124.2 121.4
Lao PDR 0.1 0.2 0.2 0.5 1 2 3.6 11.4 17.1 24.6 32.9 51.6 62.6 84 64.7 68.1
Latvia 6.9 11.5 16.9 28 39.6 53.3 68.1 84 99.4 102.3 107.5 109.1 110.3 111.4 188.3 228.4
Lebanon 16.2 19.9 23 22.8 22 21.6 23 24.9 27.1 30.4 34.1 56.3 66 77.2 80.8 80.6
Lesotho 0.5 0.7 1.2 3 7.3 6.6 10.3 13 18.4 24.7 30.1 33.2 49.2 60.7 75.3 86.3
Libya 0.4 0.6 0.8 1 1.3 2.3 9.1 35.7 69.1 77.8 125.6 159.9 180.4 163.8 155.8 165
Liechtenstein 23.3 27.5 30.2 32.9 33.7 73.2 74 79.2 82.1 90.7 95.6 97.6 98.3 101.6 98.4 104.1
Lithuania 7.5 9.4 15 29.4 48.1 62.2 91.5 132.5 145.7 154 159.8 159.9 159.4 162.2 165.1 151.3
Luxembourg 30.6 48.5 69.5 92.9 106.6 120.6 104.1 111.4 152.9 143.7 145.1 144.5 143.1 148.2 145.4 148.6
Macao SAR, China 19.6 27.8 32.7 44.4 62.2 80.8 94.3 113.8 132.6 161.1 183.8 198.9 209.9 247.7 289.8 304.1
Macedonia, FYR 1.5 2.4 5.6 10.8 17.6 37.3 47.3 54.1 60.4 85.6 93.7 92.5 102.4 105.2 106.2 106.2
Madagascar 0.1 0.2 0.4 0.9 1 1.6 1.9 2.8 5.6 11.4 24.3 30.7 36.6 40 39.4 36.9
Malawi 0.1 0.2 0.4 0.5 0.7 1.1 1.8 3.3 4.7 7.7 10.7 17.1 20.8 25.6 29.2 32.3
Malaysia 9.8 13.1 21.9 30.9 37.1 44.7 57.6 75.6 73.9 87.1 101.5 108.5 119.7 127.5 141.3 144.7
Maldives 0.6 1.1 2.8 6.8 14.8 23.1 38.7 68.4 89.5 101.7 138.8 143.2 151.8 159.8 165.6 181.2
Mali 0 0.1 0.1 0.2 0.4 2.2 3.5 6.4 12.3 19.9 26.2 32.9 53.2 75.1 98.4 129.1
Malta 5.6 9.3 28.1 58.5 67.4 70.4 74.1 78.1 83.2 88 91.6 99.8 107.3 122.4 124.4 129.8
Mauritius 5.2 8.7 15.2 22.8 29 38.4 45.3 54.2 63.5 76.1 84.5 88.6 96.8 104.8 119.9 123.2
Mexico 3.3 7.6 13.6 20.7 24.3 27.9 35.2 42.6 49.4 58.6 65.5 71.5 77.5 79.2 83.4 85.8
Moldova 0.2 0.4 3.4 5.6 8.5 12.2 20.6 28.9 36.6 51.3 66.6 59.3 71.4 90.8 102 106
Monaco 36.4 41.1 43.4 44.2 45.6 45.7 47.2 50.8 53.3 58.3 61.6 63.3 63.5 85.3 88.3 93.7
Mongolia 0.4 1.5 6.4 8.1 8.8 12.9 17.2 22.1 30.3 46 67 84.2 92.5 106.8 120.7 124.2
Morocco 0.4 1.3 8.2 16.4 21.1 24.9 31.3 41.1 52.7 65.3 73.7 80.9 101.1 114 120 128.5
Mozambique 0 0.1 0.3 0.8 1.3 2.2 3.5 7.2 10.8 13.9 19.4 25.6 30.1 32 34.9 48
Myanmar 0 0 0 0 0.1 0.1 0.2 0.3 0.4 0.5 0.7 1 1.1 2.4 7.1 12.8
Namibia 1.1 1.6 4.3 5.5 7.7 11.3 14.3 22.1 29.7 38.5 49.8 76.1 89.5 99 95 118.4
Netherlands 21.4 42.8 67.8 76.5 75.4 81.8 91.2 97.1 105.6 117.3 125 121.7 115.4 119 118 113.7
New Caledonia 6.5 12.4 23.8 31.7 36.7 43.9 51.7 58.7 66.7 74.8 82.1 86.3 89.6 91 91.2 93.8
New Zealand 20.9 36.5 40 58.6 61.8 64.6 74.2 85.4 90.9 100.4 108 108.7 107.8 109.2 110.4 105.8
Nicaragua 0.4 0.9 1.8 3.2 4.5 8.8 13.7 20.5 33.1 44.7 54.8 58.2 68.1 81.7 97.7 112
Niger 0 0 0 0 0.5 0.7 1.4 2.5 3.5 6.3 12.9 17 23.1 28.7 31.4 39.3
Nigeria 0 0 0 0.2 1.2 2.4 6.7 13.3 22.6 27.4 41.7 48 54.7 58 66.8 73.3
Norway 46.7 59.6 71.8 79.6 83.5 89.1 98.6 102.8 104.3 106.7 109.1 110.7 114.5 115.8 116.1 116.3
Oman 4.5 5.6 7.4 14.4 20.1 24.9 32.7 52.9 71.2 97.3 124.1 149.1 164.3 159 159.3 154.6
Pakistan 0.1 0.2 0.2 0.5 1.1 1.6 3.2 8.1 21.4 38.3 52.7 55.5 57.3 61.8 67.1 70.1
Panama 2.9 7.8 13.4 15.2 16.5 21.4 38.1 52 63.4 86.2 110.2 167.8 180.7 180.1 163.4 163
Papua New Guinea 0.1 0.1 0.2 0.2 0.3 0.3 0.8 1.2 1.6 4.7 13.3 21.1 27.8 34.2 37.8 41
Paraguay 4.5 8.3 15.3 21.1 29.9 31.2 30.2 32 53.7 76.6 92.9 88.5 91.7 99.3 101.6 103.7
Peru 2.9 4 4.9 6.8 8.6 10.8 14.9 20.1 32.5 54.4 73.2 85.4 99.5 109.6 98 98.1
Philippines 2.3 3.7 8.3 15.3 19 27.2 39.1 40.5 49.1 64.5 75.4 82.3 89 99.1 105.5 104.5
Poland 5 10.3 17.6 26.1 36.3 45.5 60.4 76.3 96.2 108.4 115 117.3 122.9 131.3 141.5 149.1
Portugal 30.1 45.5 64.7 77.1 83.4 95.8 100.9 108.9 116 127.7 132.9 111.5 115.3 116.4 112.4 113
Puerto Rico 15.4 21.5 34.7 42.9 43.4 45.2 49 53 58.6 65 68.2 72.9 79.1 84 82.6 83.6
Qatar 11.9 14.7 20.4 29.1 42.4 57 68.1 87.3 95.1 109.7 105.2 124.6 125 120.5 126.9 152.6
Romania 2.8 6 11.2 17.2 23 31.7 46.1 60.4 72.5 92.7 111.4 114.5 111.4 107.4 105 105.6
Russian Federation 0.5 0.9 2.2 5.3 12.1 24.9 51.1 83.4 104.8 119.2 138.9 160.1 165.5 142 145.3 152.8
Rwanda 0.1 0.1 0.5 0.7 0.9 1.4 1.5 2.4 3.3 6.4 12.9 23.1 32.7 39.9 49.7 56.8
San Marino 18.9 36 53.8 57.7 59.7 58.9 58.3 57.6 57.7 57.6 79.9 97.6 99.1 114.2 115.2 117
Saudi Arabia 3.3 4.3 6.8 12.1 22.9 31.7 38.5 57.4 77.6 109.6 136.5 167.4 189.2 194.5 187.4 184.2
Senegal 0.3 0.9 2.5 3 5.3 7.3 10.2 15.4 25.8 30.5 44 54.8 64.4 70.2 83.6 92.9
Seychelles 6.7 20.7 32.5 45.2 54.1 58.5 63.4 67.5 79.7 86.7 104 122.2 128.9 137.9 147.8 147.3
Singapore 29.3 42.7 70.1 74.4 80.1 84.1 91.2 97.5 103.8 125.2 132.3 138.7 145.4 150.1 152.1 155.9
Slovak Republic 8.6 12.3 23.1 39.9 54.3 68.3 79.3 84.2 90.7 112.3 101.9 101.3 109 110 111.9 113.9
Slovenia 8.1 31.7 61.1 73.9 83.8 87.3 92.7 87.9 90.6 95.5 101.1 102.7 103.3 105.2 108.4 110.2
Solomon Islands 0.2 0.3 0.3 0.2 0.2 0.2 0.7 1.3 1.5 2.2 6 9.7 21.9 51.1 55 57.6
South Africa 7.7 11.7 18.6 23.7 29.7 36 43.8 70.4 81.1 85.3 89.5 91.2 97.9 123.2 130.6 145.6
Spain 16.2 37.6 60.2 72.8 81.1 88.6 90.4 98.4 103.8 108.4 109.7 111.6 111.3 113.1 108.4 106.9
Sri Lanka 0.9 1.4 2.3 3.5 4.8 7.1 11.2 16.8 26.9 39.3 54.2 79.1 83.6 87.5 91.6 95.5
St. Kitts and Nevis 1 1.6 2.6 4.5 10.7 46.1 59.9 103.8 102.4 127.8 145.8 145.9 152.8 145.4 141.8 142.1
St. Lucia 1.2 1.5 1.6 1.7 8.9 61.2 61.8 63.9 63 86.4 101.3 108.3 111.7 120.8 119.4 116.3
St. Vincent and the Grenadines 0.7 1.3 2.2 6.9 9.2 58.1 66.3 64.9 80.5 101.3 119.2 110.9 120.6 120.5 116.1 114.6
Sudan 0 0 0.1 0.3 0.5 1.4 2.8 4.8 11.9 20.4 29 36.1 41.5 68.8 74.4 72.9
Suriname 1.3 3.8 8.8 18.4 22.6 34.6 43.1 46.6 63.3 74.4 127.5 146.9 99.3 100.7 106.5 161.1
Swaziland 0.5 1.3 3.1 5.1 6.3 7.8 13.2 18.1 22.4 33.5 46.1 56.6 60.8 63.2 65.4 71.5
Sweden 46.4 57.8 71.8 80.8 89.2 98.4 97.8 100.8 105.7 110.5 108.4 112.1 117.2 121.2 124.6 124.4
Switzerland 23.9 42.8 64.7 73.3 79.2 84.9 85.4 92.2 99.4 108.5 116.3 120.4 123.2 127.4 132.1 136.8
Tajikistan 0 0 0 0 0.2 0.7 2 3.9 30.9 30 50.5 65.8 77.9 80.9 81.5 91.8
Tanzania 0.1 0.2 0.3 0.8 1.7 3.5 5.1 7.6 14 20.1 30.7 40 46.7 55.4 57 55.7
Thailand 3.2 3.8 4.9 12 27.4 33.5 41.4 46.5 60.9 80.2 93.4 99.5 108 116.3 127.3 140.1
Togo 0.2 0.4 1 1.9 3.2 4.6 6.2 7.8 12.5 20.4 25.9 35.6 41.3 41.6 49.9 62.5
Tonga 0.1 0.1 0.2 0.2 3.4 11.2 16.3 29.6 29.6 45.5 49 51.2 52.2 52.6 53.4 54.6
Trinidad and Tobago 2.1 3.1 12.8 20.1 20.6 26.2 50.5 71.3 116.5 115.2 137.2 139.6 142.6 137 140.8 144.9
Tunisia 0.4 0.6 1.2 4 5.9 19.5 37.6 56.5 72.2 76.3 82.8 93.2 104.5 115.2 118.1 115.6
Turkey 5.7 13 25.5 30.5 35.9 42.3 51.9 64.4 76.7 89.2 93.5 88.1 85.6 89.4 91.5 93
Turkmenistan 0.1 0.1 0.2 0.2 0.2 0.2 1.1 2.2 4.5 7.9 23.1 42.8 63.4 103.8 114.1 116.9
Uganda 0.1 0.2 0.5 1.1 1.5 2.9 4.2 4.6 6.8 13.7 26.9 28.6 37.7 47.5 45 44.1
Ukraine 0.2 0.4 1.7 4.6 7.7 13.6 28.9 63.7 104.7 118.4 119.8 118.8 117.1 121.3 130.3 138.1
United Arab Emirates 17.9 28.8 47.2 61 75.3 88.2 100.7 109.3 113.2 133.4 137.6 138.3 129.4 131.4 149.6 171.9
United Kingdom 25.4 46.3 73.7 78.2 82.8 90.9 99.5 108.6 115.6 121.1 122.2 124 123.6 123.6 124.8 124.6
United States 24.9 30.6 38.5 44.7 48.9 54.8 62.5 68.3 76.3 82.1 85.2 88.6 91.3 94.4 96 95.5
Uruguay 4.6 9.6 12.4 15.6 15.4 15 18 34.7 70 90 104.7 122.4 131.6 140.6 147.1 154.6
Uzbekistan 0.1 0.2 0.2 0.5 0.7 1.3 2.1 2.8 9.6 21.3 45.8 59.9 75.5 90.4 71 74.3
Vanuatu 0.1 0.2 0.2 0.2 2.5 3.9 5.1 6.1 7 11.8 16 57 71.9 56.6 59.1 50.3
Venezuela, RB 8.6 15.8 22.3 26 25.8 27.2 32.1 46.8 69.1 86.1 97.5 98.4 96 97.6 102.1 101.6
Vietnam 0.3 0.4 1 1.5 2.3 3.3 5.9 11.3 22 52 85.7 111.4 125.3 141.6 147.7 130.9
Yemen, Rep. 0.1 0.2 0.2 0.8 2.6 3.5 7.5 11.3 14.4 20.5 29.7 37.4 48.7 50.1 58.3 69
Zambia 0.1 0.3 1 1.2 1.3 2.2 4.2 8.3 14.1 21.8 28.4 34.4 41.2 59.9 74.8 71.5
Zimbabwe 0.2 1.4 2.1 2.5 2.7 2.9 3.4 5.1 6.7 9.6 12.9 31 58.9 68.9 91.9 96.3
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cell phone subsription (per 100 people) in 2013</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: lightcyan;
font-family: Helvetica, Arial, sans-serif;
}
h1 {
font-size: 23px;
margin: 0;
}
p {
font-size: 14px;
margin: 9px 0 0 0;
}
svg {
background-color: lightcyan;
}
rect:hover {
fill: green;
}
.axis path,
.axis line {
fill: none;
stroke: black;
shape-rendering: crispEdges;
}
.axis text {
font-family: sans-serif;
font-size: 12px;
}
.y.axis path,
.y.axis line {
opacity: 0;
}
</style>
</head>
<body>
<h1>Cell Phone Subscriptions 2013</h1>
<p>Cell phone subscriptions by country (per 100 people). Source: <a href="http://data.worldbank.org/indicator/IT.CEL.SETS.P2">World DataBank</a>, 2013</p>
<script type="text/javascript">
var w = 1000;
var h = 3000;
var padding = [ 5, 10, 20, 200 ]; //Top, right, bottom, left
var widthScale = d3.scale.linear()
.range([ 0, w - padding[1] - padding[3] ]);
var heightScale = d3.scale.ordinal()
.rangeRoundBands([ padding[0], h - padding[2] ], 0.1);
var xAxis = d3.svg.axis()
.scale(widthScale)
.orient("bottom");
var yAxis = d3.svg.axis()
.scale(heightScale)
.orient("left");
var svg = d3.select("body")
.append("svg")
.attr("width", w)
.attr("height", h);
d3.csv("cellphoneusage.csv", function(data) {
data.sort(function(a, b) {
return d3.descending(+a["2013"], +b["2013"]);
});
widthScale.domain([ 0, d3.max(data, function(d) {
return +d["2013"];
}) ]);
heightScale.domain(data.map(function(d) { return d.Country; } ));
var rects = svg.selectAll("rect")
.data(data)
.enter()
.append("rect");
rects.attr("x", padding[3])
.attr("y", function(d) {
return heightScale(d.Country);
})
.attr("width", function(d) {
return widthScale(d["2013"]);
})
.attr("height", heightScale.rangeBand())
.attr("fill", "MidnightBlue")
.append("title")
.text(function(d) {
return d.Country + "'s cell phone subscriptions per 100 people is " + d["2013"];
});
svg.append("g")
.attr("class", "x axis")
.attr("transform", "translate(" + padding[3] + "," + (h - padding[2]) + ")")
.call(xAxis);
svg.append("g")
.attr("class", "y axis")
.attr("transform", "translate(" + (padding[3] - 5) + ",0)")
.call(yAxis);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment