User:Nyth83/Timeline of submarines of the United States Navy

This is a series of bar graphs showing the Timeline of submarines of the United States Navy.

Pre-Holland (North America)
Notes:
 * A more complete list of early submarines can be found at List of pre-Holland submarines.
 * These subs were not commissioned in the United States Navy but are shown for historical context.
 * Robert Fulton was an American, and while his submarine, Nautilus was actually built in France, it is also included here for context.
 * The first commissioned boat, USS Holland (SS-1) is included at the bottom to assist in visually matching the following timeline.

Number of in-commission subs by year

 * Number for each year reflects count on 1 Jan of that year.
 * Blue line represent all subs.
 * Grey line represents only diesel powered subs. From 1991 to 2007 the only active diesel powered boat was the USS Dolphin (AGSS-555) research sub.
 * Green line shows only nuclear powered subs.
 * Number of commissioned subs peaked after WW-I in 1921 at 104.
 * During WW-II the number peaked in 1945 at 237. The absolute maximum simultaneously in service may have been higher as there were at least 8 boats that were commissioned and lost in the same calendar year and are not counted in the Jan 1 totals.
 * During the Cold War the number of subs peaked in 1968 at 171. Of those, 86 were continuously active or reactivated Gato, Balao and Tench class.
 * As of 01 Jan 2017 the number of commissioned subs was 68.

Graph test 1
{ "version": 2, "width": 1230, "height": 500, "padding": "auto", "data": [ {     "name": "table", "values": [ {"year": 1900, "active": 0 }, {"year": 1901, "active": 0 }, {"year": 1902, "active": 1 }, {"year": 1903, "active": 1 }, {"year": 1904, "active": 1 }, {"year": 1905, "active": 8 }, {"year": 1906, "active": 8 }, {"year": 1907, "active": 7 }, {"year": 1908, "active": 6 }, {"year": 1909, "active": 10 }, {"year": 1910, "active": 11 }, {"year": 1911, "active": 16 }, {"year": 1912, "active": 18 }, {"year": 1913, "active": 20 }, {"year": 1914, "active": 24 }, {"year": 1915, "active": 27 }, {"year": 1916, "active": 37 }, {"year": 1917, "active": 37 }, {"year": 1918, "active": 44 }, {"year": 1919, "active": 50 }, {"year": 1920, "active": 84 }, {"year": 1921, "active": 94 }, {"year": 1922, "active": 104 }, {"year": 1923, "active": 102 }, {"year": 1924, "active": 85 }, {"year": 1925, "active": 84 }, {"year": 1926, "active": 84 }, {"year": 1927, "active": 87 }, {"year": 1928, "active": 86 }, {"year": 1929, "active": 82 }, {"year": 1930, "active": 85 }, {"year": 1931, "active": 84 }, {"year": 1932, "active": 84 }, {"year": 1933, "active": 60 }, {"year": 1934, "active": 59 }, {"year": 1935, "active": 59 }, {"year": 1936, "active": 58 }, {"year": 1937, "active": 59 }, {"year": 1938, "active": 62 }, {"year": 1939, "active": 62 }, {"year": 1940, "active": 67 }, {"year": 1941, "active": 77 }, {"year": 1942, "active": 95 }, {"year": 1943, "active": 120 }, {"year": 1944, "active": 138 }, {"year": 1945, "active": 176 }, {"year": 1946, "active": 237 }, {"year": 1947, "active": 181 }, {"year": 1948, "active": 100 }, {"year": 1949, "active": 84 }, {"year": 1950, "active": 81 }, {"year": 1951, "active": 79 }, {"year": 1952, "active": 77 }, {"year": 1953, "active": 105 }, {"year": 1954, "active": 109 }, {"year": 1955, "active": 125 }, {"year": 1956, "active": 122 }, {"year": 1957, "active": 119 }, {"year": 1958, "active": 122 }, {"year": 1959, "active": 124 }, {"year": 1960, "active": 121 }, {"year": 1961, "active": 125 }, {"year": 1962, "active": 129 }, {"year": 1963, "active": 138 }, {"year": 1964, "active": 143 }, {"year": 1965, "active": 144 }, {"year": 1966, "active": 156 }, {"year": 1967, "active": 159 }, {"year": 1968, "active": 168 }, {"year": 1969, "active": 171 }, {"year": 1970, "active": 164 }, {"year": 1971, "active": 155 }, {"year": 1972, "active": 147 }, {"year": 1973, "active": 144 }, {"year": 1974, "active": 132 }, {"year": 1975, "active": 117 }, {"year": 1976, "active": 118 }, {"year": 1977, "active": 118 }, {"year": 1978, "active": 118 }, {"year": 1979, "active": 120 }, {"year": 1980, "active": 122 }, {"year": 1981, "active": 123 }, {"year": 1982, "active": 121 }, {"year": 1983, "active": 127 }, {"year": 1984, "active": 131 }, {"year": 1985, "active": 133 }, {"year": 1986, "active": 137 }, {"year": 1987, "active": 140 }, {"year": 1988, "active": 139 }, {"year": 1989, "active": 140 }, {"year": 1990, "active": 138 }, {"year": 1991, "active": 134 }, {"year": 1992, "active": 127 }, {"year": 1993, "active": 126 }, {"year": 1994, "active": 120 }, {"year": 1995, "active": 114 }, {"year": 1996, "active": 109 }, {"year": 1997, "active": 103 }, {"year": 1998, "active": 100 }, {"year": 1999, "active": 92 }, {"year": 2000, "active": 85 }, {"year": 2001, "active": 77 }, {"year": 2002, "active": 75 }, {"year": 2003, "active": 74 }, {"year": 2004, "active": 73 }, {"year": 2005, "active": 73 }, {"year": 2006, "active": 73 }, {"year": 2007, "active": 73 }, {"year": 2008, "active": 72 }, {"year": 2009, "active": 71 }, {"year": 2010, "active": 71 }, {"year": 2011, "active": 71 }, {"year": 2012, "active": 72 }, {"year": 2013, "active": 71 }, {"year": 2014, "active": 72 }, {"year": 2015, "active": 73 }, {"year": 2016, "active": 72 }, {"year": 2017, "active": 68 }, {"year": 2017, "active": 68 }, ]	   },	    {	      "name": "annotation", "values": [ {"start": 1916,"end": 1919,"text": "WW I"}, {"start": 1941,"end": 1945,"text": "WW II"} ]	   }	  ],	  "scales": [ {	     "name": "x", "type": "linear", "range": "width", "zero": false, "domain": {"data": "table","field": "year"} },	   {	      "name": "y", "type": "linear", "range": "height", "nice": true, "domain": {"data": "table","field": "active"} },	   {	      "name": "color", "type": "ordinal", "domain": {"data": "annotation","field": "text"}, "range": ["black","red"] }	 ],	  "axes": [ {	     "type": "x", "scale": "x", "format": "d", "title": "Year", "ticks": 15 },	   {	      "type": "y", "scale": "y", "title": "Number", "grid": true, "layer": "back" }	 ],	  "marks": [ {	     "type": "rect", "from": {"data": "annotation"}, "properties": { "enter": { "x": {"scale": "x","field": "start"}, "y": {"value": 0}, "x2": {"scale": "x","field": "end"}, "y2": {"signal": "height"}, "fill": {"scale": "color","field": "text"}, "opacity": {"value": 0.2} }	     }	    },	    {	      "type": "line", "from": {"data": "table"}, "properties": { "enter": { "interpolate": {"value": "monotone"}, "x": {"scale": "x","field": "year"}, "y": {"scale": "y","field": "active"}, "stroke": {"value": "steelblue"}, "strokeWidth": {"value": 2} }	     }	    },	    {	      "type": "symbol", "from": {"data": "table"}, "properties": { "enter": { "x": {"scale": "x","field": "year"}, "y": {"scale": "y","field": "active"}, "stroke": {"value": "steelblue"}, "fill": {"value": "white"}, "size": {"value": 15} }	     }	    },	    {	      "type": "text", "from": { "data": "table", "transform": [ {	           "type": "aggregate", "summarize": {"year": ["min","max"]} }	       ]	      },	      "properties": { "enter": { "x": {"signal": "width","mult": 0.5}, "y": {"value": -10}, "text": { "template": "Number of Commissioned Subs from \u007b{datum.min_year}\u007d to \u007b{datum.max_year}\u007d" },	         "fill": {"value": "black"}, "fontSize": {"value": 16}, "align": {"value": "center"}, "fontWeight": {"value": "bold"} }	     }	    }	  ],	  "legends": [ {	     "fill": "color", "title": "Period", "properties": { "symbols": { "strokeWidth": {"value": 0}, "shape": {"value": "square"}, "opacity": {"value": 0.3} },	       "legend": { "x": {"value": 10}, "y": {"value": 5}, "fill": {"value": "white"} }	     }	    }	  ]	}

Graph Test 2
{ "width": 1300, "height": 400, "data": [ {     "name": "subs", "values": [ {"label":"Nautilis", "born":-7506057600000, "died":-5366196000000, "enter":-5701424400000, "leave":-5453884800000}, {"label":"Adams",     "born":-7389766800000, "died":-4528285200000, "enter":-5453884800000, "leave":-5327740800000}, {"label":"Jefferson", "born":-7154586000000, "died":-4528285200000, "enter":-5327740800000, "leave":-5075280000000}, {"label":"Madison",   "born":-6904544400000, "died":-4213184400000, "enter":-5075280000000, "leave":-4822819200000}, {"label":"Monroe",    "born":-6679904400000, "died":-4370518800000, "enter":-4822819200000, "leave":-4570358400000} ]   },    {      "name": "events", "format": {"type":"json", "parse":{"when":"date"}}, "values": [ {"name":"Decl. of Independence", "when":"July 4, 1776"}, {"name":"U.S. Constitution",    "when":"3/4/1789"}, {"name":"Louisiana Purchase",   "when":"April 30, 1803"}, {"name":"Monroe Doctrine",      "when":"Dec 2, 1823"} ]   }

], "scales": [ {     "name": "y", "type": "ordinal", "range": "height", "domain": {"data": "subs", "field": "label"} },   {      "name": "x", "type": "time", "range": "width", "round": true, "nice": "year", "domain": {"data": "subs", "field": ["born", "died"]} } ],  "axes": [ {     "type": "x", "scale": "x", "properties": {"labels": {"fontSize": {"value": 12}}} } ],  "marks": [ {     "type": "text", "from": {"data": "events"}, "properties": { "enter": { "x": {"scale": "x", "field": "when"}, "y": {"value": -10}, "angle": {"value": -90}, "fill": {"value": "#000"}, "text": {"field": "name"}, "font": {"value": "Helvetica Neue"}, "fontSize": {"value": 12} }     }    },    {      "type": "rect", "from": {"data": "events"}, "properties": { "enter": { "x": {"scale": "x", "field": "when"}, "y": {"value": -8}, "width": {"value": 1}, "height": {"field": {"group": "height"}, "offset": 8}, "fill": {"value": "#888"} }     }    },    {      "type": "text", "from": {"data": "subs"}, "properties": { "enter": { "x": {"scale": "x", "field": "born"}, "y": {"scale": "y", "field": "label", "offset": -3}, "fill": {"value": "#000"}, "text": {"field": "label"}, "font": {"value": "Helvetica Neue"}, "fontSize": {"value": 20} }     }    },    {      "type": "rect", "from": {"data": "subs"}, "properties": { "enter": { "x": {"scale": "x", "field": "born"}, "x2": {"scale": "x", "field": "died"}, "y": {"scale": "y", "field": "label"}, "height": {"value": 2}, "fill": {"value": "#557"} }     }    },    {      "type": "rect", "from": {"data": "subs"}, "properties": { "enter": { "x": {"scale": "x", "field": "enter"}, "x2": {"scale": "x", "field": "leave"}, "y": {"scale": "y", "field": "label", "offset":-1}, "height": {"value": 4}, "fill": {"value": "#e44"} }     }    }  ] }