Created
August 23, 2016 02:32
-
-
Save xtrntr/0ee285a6aecfcc4eeb3732ada288fb9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bat_name | bat_year | ||
---|---|---|---|
3 | Battle of Carthage | 698 | |
5 | Second Arab Siege of Constantinople | 717 | |
7 | First Arab Siege of Constantinople | 674 | |
13 | Battle of Baekgang | 663 | |
16 | Battle of the North Cape | 1943 | |
66 | Second Battle of Yeonpyeong | 2002 | |
73 | Battle of Bubiyan | 1991 | |
80 | Action in the Gulf of Sidra (1986) | 1986 | |
84 | Battle of Seal Cove | 1982 | |
86 | Falklands War | 1982 | |
88 | Operation Morvarid | 1980 | |
89 | Battle of the Paracel Islands | 1974 | |
91 | Battle of Baltim | 1973 | |
92 | Battle of Latakia | 1973 | |
97 | Operation Linebacker | 1972 | |
99 | First Battle of Quảng Trị | 1972 | |
100 | Sinking of INS | 1971 | |
101 | Operation Python | 1971 | |
102 | Operation Trident | 1971 | |
108 | USS incident | 1967 | |
109 | Six-Day War | 1967 | |
110 | Operation Dwarka, | 1965 | |
112 | Battle of Inchon | 1950 | |
113 | Battle of Chumonchin Chan | 1950 | |
119 | Battle of Okinawa | 1945 | |
121 | Battle of the Philippine Sea | 1944 | |
122 | Battle of Ushant | 1944 | |
125 | Battle of Cape St. George | 1943 | |
126 | Battle of Empress Augusta Bay | 1943 | |
127 | Battle of Vella Lavella | 1943 | |
129 | Battle of Vella Gulf | 1943 | |
130 | Battle of Kolombangara | 1943 | |
131 | Battle of Kula Gulf | 1943 | |
134 | Convoy ONS 5 | 1943 | |
136 | Battle of the Komandorski Islands | 1943 | |
138 | Convoy HX 229/SC 122 | 1943 | |
139 | Convoy HX 228 | 1943 | |
140 | Convoy SC 121 | 1943 | |
141 | Battle of Blackett Strait | 1943 | |
143 | Battle of the Bismarck Sea | 1943 | |
144 | Convoy ON 166 | 1943 | |
145 | Convoy SC 118 | 1943 | |
146 | Battle of Rennell Island | 1943 | |
147 | Battle of the Barents Sea | 1942 | |
148 | Convoy ON 154 | 1942 | |
149 | Battle of Tassafaronga | 1942 | |
150 | Naval Battle of Guadalcanal | 1942 | |
151 | Naval Battle of Casablanca | 1942 | |
152 | Convoy SC 107 | 1942 | |
153 | Operation Torch | 1942 | |
155 | Battle of the Santa Cruz Islands | 1942 | |
156 | Convoy SC 104 | 1942 | |
157 | Battle of Cape Esperance | 1942 | |
158 | Convoy ON 127 | 1942 | |
159 | Battle of the Eastern Solomons | 1942 | |
160 | Battle of Savo Island | 1942 | |
161 | Convoy SC 94 | 1942 | |
162 | Operation Pedestal | 1942 | |
163 | Convoy PQ 17 | 1942 | |
164 | Operation Harpoon | 1942 | |
165 | Operation Vigorous | 1942 | |
166 | Battle of Midway | 1942 | |
167 | Battle of the St. Lawrence | 1942 | |
168 | Battle of the Java Sea | 1942 | |
169 | First Battle of Sirte | 1941 | |
170 | Battle of Cape Bon | 1941 | |
171 | Sinking of and | 1941 | |
172 | Second Battle of Sirte | 1942 | |
173 | Battle of the Coral Sea | 1942 | |
176 | Convoy | 1941 | |
177 | Naval evacuation of Tallinn 1941 | 1941 | |
178 | The last battle of the battleship | 1941 | |
179 | Attack on Pearl Harbor | 1941 | |
180 | Battle between HMAS and German auxiliary cruiser | 1941 | |
181 | Battle of the Denmark Strait | 1941 | |
183 | Battle of Cape Matapan | 1941 | |
184 | Battle of Ko Chang | 1941 | |
185 | Battle of Cape Spartivento | 1940 | |
186 | Battle of Crete | 1941 | |
187 | Battle of Taranto | 1940 | |
189 | Battle of Dakar | 1940 | |
191 | Battle of Cape Spada | 1940 | |
192 | Battle of Calabria | 1940 | |
193 | Attack on Mers El Kébir | 1940 | |
194 | Operation Juno | 1940 | |
195 | Naval battle preceding the first naval battle of NarvikFirst naval battle of NarvikSecond naval battle of NarvikBattle of Narvik | 1940 | |
196 | Naval battle preceding the first naval battle of NarvikFirst naval battle of NarvikSecond naval battle of NarvikBattle of Narvik | 1940 | |
197 | Battle of the River Plate | 1939 | |
198 | Battle of Cape Palos | 1938 | |
199 | Battle of Cape Cherchell | 1937 | |
200 | Battle of Cape Espartel | 1936 | |
201 | Battle of the Atlantic | 1939 | |
202 | Baltic Naval War | 1918 | |
204 | Spanish Civil War | 1936 | |
205 | Battle of Lemnos | 1913 | |
206 | Naval Battle of Elli | 1912 | |
207 | Battle of Kaliakra | 1912 | |
208 | Battle of Beirut | 1912 | |
210 | Battle of Preveza | 1911 | |
211 | Battle of Tsushima | 1905 | |
213 | Battle off Ulsan | 1904 | |
214 | Battle of the Yellow Sea | 1904 | |
215 | Battle of Port Arthur (naval) | 1904 | |
217 | Battle of Chemulpo Bay | 1904 | |
218 | Battle of Santiago de Cuba | 1898 | |
219 | Battle of Manila Bay | 1898 | |
220 | Battle of Yalu River (1894) | 1894 | |
222 | Battle of Fuzhou, Combat naval de Fou-Tchéou, 馬江海戰 | 1884 | |
223 | Battle of Angamos | 1879 | |
224 | Battle of Iquique | 1879 | |
225 | Incident of Pacocha | 1877 | |
226 | War of the Pacific | 1879 | |
227 | Naval Battle of Hakodate | 1869 | |
229 | Battle of Lissa | 1866 | |
230 | Battle of Callao | 1866 | |
231 | Battle of Abtao | 1866 | |
232 | Battle of the Riachuelo | 1865 | |
233 | Battle of Heligoland | 1864 | |
234 | Battle of Jasmund | 1864 | |
235 | Battle of Hampton Roads, (Battle of Ironclads) | 1862 | |
236 | Siege of Petropavlovsk | 1854 | |
238 | Battle of Sinop | 1853 | |
239 | Battle of Vuelta de Obligado | 1845 | |
240 | Naval Battle of Campeche | 1843 | |
245 | Battle of Cape St. Vincent | 1833 | |
246 | Battle of Monte Santiago | 1827 | |
247 | Battle of Juncal | 1827 | |
248 | Russo-Turkish War | 1828 | |
250 | Battle of Navarino | 1827 | |
254 | Battle of Gerontas | 1824 | |
258 | Battle of Plattsburgh | 1814 | |
261 | Battle of Lake Erie | 1813 | |
262 | Second Battle of Sacket's Harbor | 1813 | |
263 | First Battle of Sacket's Harbor | 1812 | |
264 | Battle of Lake Maracaibo | 1823 | |
265 | Battle of 4 May | 1823 | |
267 | Action of 5 November 1813 | 1813 | |
268 | Battle of Lyngør | 1812 | |
269 | Battle of Pirano | 1812 | |
270 | Action of 29 November 1811 | 1811 | |
271 | Battle of Lissa | 1811 | |
272 | Battle of Grand Port | 1810 | |
273 | Action of 3 July 1810 | 1810 | |
274 | Roquebert's expedition to the Caribbean:, Action of 13 December 1809Roquebert's expedition to the Caribbean:, Action of 18 December 1809 | 1809 | |
277 | Action of 18 November 1809 | 1809 | |
279 | Capture of the Rosily Squadron | 1808 | |
280 | Battle of Copenhagen 1807 | 1807 | |
281 | Battle of Athos | 1807 | |
283 | Battle of the Dardanelles | 1807 | |
284 | Battle of the Dardanelles | 1807 | |
285 | Dardanelles Operation | 1807 | |
286 | Action of 25 September 1806 | 1806 | |
287 | Action of 26 July 1806 | 1806 | |
288 | Battle of Santo Domingo | 1806 | |
290 | Battle of Cape Finisterre | 1805 | |
291 | Battle of Pulo Aura | 1804 | |
292 | Algeciras campaign | 1801 | |
293 | First Battle of Copenhagen | 1801 | |
294 | Battle of Trafalgar | 1805 | |
295 | Action of 4 August 1800 | 1800 | |
296 | Battle of Tory Island | 1798 | |
297 | Battle of Camperdown | 1797 | |
298 | Action of 16 May 1797 | 1797 | |
299 | Battle of Cape St. Vincent | 1797 | |
300 | Action of 7 October 1795 | 1795 | |
301 | Battle of Groix | 1795 | |
302 | Battle of the Nile | 1798 | |
303 | Glorious First of June | 1794 | |
304 | Sunda Strait campaign | 1794 | |
305 | Action of 6 November 1794 | 1794 | |
306 | Action of 23 April 1794 | 1794 | |
308 | Second Battle of Svensksund / Rochensalm / Ruotsinsalmi | 1790 | |
309 | Battle of Viborg Bay | 1790 | |
310 | Battle of Reval | 1790 | |
311 | First battle of Svensksund / Rochensalm | 1789 | |
312 | Battle of Öland | 1789 | |
313 | Battle of Hogland | 1788 | |
314 | Battle of Cape Kaliakra | 1791 | |
315 | Battle of Măcin | 1791 | |
316 | Battle of Kerch Strait | 1790 | |
319 | Battle of Tendra | 1790 | |
321 | Battle of Cape Spartel | 1782 | |
322 | Battle of Negapatam | 1782 | |
323 | Battle of the Saintes | 1782 | |
324 | Battle of Cuddalore | 1783 | |
325 | Battle of Trincomalee | 1782 | |
326 | Battle of Sadras | 1782 | |
327 | Battle of Providien | 1782 | |
328 | Battle of St. Kitts | 1782 | |
329 | Second Battle of Ushant | 1781 | |
330 | Battle of the Chesapeake | 1781 | |
331 | Battle of Dogger Bank | 1781 | |
332 | Action of 21 July 1781, | 1781 | |
333 | Battle of Fort Royal | 1781 | |
335 | Battle of Porto Praya | 1781 | |
336 | Action of 9 August 1780 | 1780 | |
338 | Battle of Martinique | 1780 | |
339 | Battle of Cape St. Vincent | 1780 | |
340 | Battle of Grenada | 1779 | |
343 | Battle of Ushant | 1778 | |
344 | Frederica naval action | 1778 | |
347 | Battle of Valcour Island | 1776 | |
350 | Action of 4 July 1773 | 1773 | |
352 | Battle of Chesma | 1770 | |
354 | Siege of Havana | 1762 | |
355 | Battle of Restigouche | 1760 | |
356 | Battle of Quiberon Bay | 1759 | |
358 | Battle of Lagos | 1759 | |
360 | Battle of Cuddalore | 1758 | |
361 | Battle of Minorca | 1756 | |
362 | Action of 8 June 1755 | 1755 | |
363 | Battle of Havana | 1748 | |
365 | Second Battle of Cape Finisterre | 1747 | |
367 | First battle of Cape Finisterre | 1747 | |
368 | Battle of Toulon | 1744 | |
370 | Battle of Colachel | 1741 | |
371 | Battle of Cartagena de Indias | 1741 | |
372 | Battle of Cape Passaro | 1718 | |
373 | Battle of Matapan | 1717 | |
374 | Battle of Imbros | 1717 | |
377 | Action of 8 July 1716 | 1716 | |
378 | Wagers Action | 1708 | |
379 | Battle at the Lizard | 1707 | |
380 | Battle of Málaga | 1704 | |
381 | Battle of Cap de la Roque | 1703 | |
382 | Battle of Vigo Bay | 1702 | |
383 | Action of August 1702 | 1702 | |
385 | Battle of Grengam | 1720 | |
386 | Battle of Osel Island | 1719 | |
387 | Battle of Dynekilen | 1716 | |
388 | Battle of Fehmarn (1715) | 1715 | |
389 | Battle of Gangut | 1714 | |
390 | Battle of Hogland (1713) | 1713 | |
391 | Action of 31 July 1712 | 1712 | |
392 | Battle of Fladstrand | 1712 | |
393 | Battle of Køge Bay (1710) | 1710 | |
398 | Naval battle off St. John | 1696 | |
399 | Battle of Dogger Bank | 1696 | |
400 | Battle of the Oinousses Islands | 1695 | |
402 | Battle of Texel | 1694 | |
404 | Battle of Lagos | 1693 | |
405 | Battle of Barfleur–La Hougue | 1692 | |
407 | Battle of Beachy Head | 1690 | |
408 | Battle of Bantry Bay | 1689 | |
413 | Battle of Cape St Vincent (1681) | 1681 | |
415 | Nine Years' War | 1688 | |
418 | Battle of Møn | 1677 | |
419 | Action of March 1677 | 1677 | |
422 | Battle of Öland | 1676 | |
423 | Battle of Køge Bay | 1677 | |
425 | Battle of Palermo | 1676 | |
426 | Battle of Augusta | 1676 | |
430 | Battle of Stromboli | 1676 | |
432 | Battle of Cádiz | 1669 | |
434 | Battle of The Sound | 1658 | |
444 | Battle of Orbetello | 1646 | |
445 | Battle of La Naval de Manila | 1646 | |
450 | Battle of Texel | 1673 | |
452 | Battle of Schooneveld | 1673 | |
454 | Battle of Solebay | 1672 | |
458 | Raid on the Medway | 1667 | |
462 | St James' Day Battle | 1666 | |
465 | Four Days' Battle | 1666 | |
469 | Battle of Vågen | 1665 | |
472 | Battle of Lowestoft | 1665 | |
477 | Battle of Scheveningen | 1653 | |
478 | Battle of the Gabbard | 1653 | |
480 | Battle of Leghorn | 1653 | |
481 | Battle of Portland | 1653 | |
482 | Battle of Dungeness | 1652 | |
490 | First Anglo-Dutch War | 1652 | |
499 | Action of 27 August, 1661 | 1661 | |
501 | Fourth Battle of the Dardanelles | 1657 | |
504 | Third Battle of the Dardanelles | 1656 | |
509 | Battle of Focchies | 1649 | |
511 | Action of 28 September 1644 | 1644 | |
512 | Battle of Fehmarn (1644) | 1644 | |
513 | Battle of Colberger (Kolberger) Heide | 1644 | |
514 | Battle of Lister Dyb | 1644 | |
518 | Cretan War, (Fifth Ottoman–Venetian War) | 1645 | |
519 | Action of 12–17 January 1640 | 1640 | |
524 | Battle of Cape St. Vincent | 1641 | |
526 | Battle of the Downs | 1639 | |
528 | Action of 18 September 1639 | 1639 | |
529 | Action of 19 February 1639 | 1639 | |
533 | Battle of Getaria | 1638 | |
542 | Battle of the Slaak | 1631 | |
544 | Battle of Oliwa | 1627 | |
552 | Action of 1 February 1625 | 1625 | |
557 | Naval battle of Saint-Martin-de-Ré, () | 1622 | |
563 | Battle of Cape Celidonia | 1616 | |
567 | Battle of Swally | 1612 | |
569 | Action of 29 June, 1609 | 1609 | |
572 | Battle of Gibraltar | 1607 | |
575 | Battle of Cape Rachado | 1606 | |
577 | Battle of Sluis (1603) | 1603 | |
582 | Battle of Noryang | 1598 | |
583 | Islands Voyage | 1597 | |
585 | Battle of Myeongnyang | 1597 | |
587 | Battle of Chilchonryang | 1597 | |
588 | Battle of Busan | 1592 | |
589 | Battle of Hansan Island | 1592 | |
592 | Battle of Sacheon (1592) | 1592 | |
595 | Battle of Okpo | 1592 | |
596 | Battle of Flores | 1591 | |
597 | English Armada | 1589 | |
599 | Spanish Armada | 1588 | |
602 | Battle of Ponta Delgada | 1582 | |
606 | Battle of Ponta Delgada | 1582 | |
607 | Siege of Ishiyama Hongan-ji | 1570 | |
608 | First Battle of KizugawaguchiSecond Battle of Kizugawaguchi | 1576 | |
611 | Battle of Lillo | 1574 | |
612 | Battle of the Scheldt (1574) | 1574 | |
613 | Battle on the Zuiderzee | 1573 | |
614 | Battle of Haarlemmermeer | 1573 | |
620 | Battle of Lepanto | 1571 | |
621 | Battle of Djerba | 1560 | |
622 | Battle of Ponza | 1552 | |
624 | Battle of the Solent | 1545 | |
625 | Battle of Preveza | 1538 | |
630 | Battle of Saint-Mathieu | 1512 | |
638 | Battle of Diu | 1509 | |
641 | Battle of Modon | 1500 | |
645 | Battle of Zonchio | 1499 | |
646 | Battle of Guinea | 1478 | |
649 | Battle of the Echinades | 1427 | |
650 | Fall of Constantinople | 1453 | |
655 | Battle of Chioggia | 1380 | |
657 | Battle of La Rochelle | 1372 | |
660 | Battle of Lake Poyang | 1363 | |
665 | Battle of Les Espagnols sur Mer | 1350 | |
670 | Battle of Sluys | 1340 | |
674 | Battle of Arnemuiden | 1338 | |
678 | Battle of Chios | 1319 | |
680 | Battle of Zierikzee | 1304 | |
681 | Battle of Ponza | 1300 | |
682 | Battle of Cape Orlando | 1299 | |
686 | Battle of Curzola | 1298 | |
688 | Battle of Bạch Đằng (1288) | 1288 | |
689 | Battle of the Counts | 1287 | |
690 | Battle of Les Formigues | 1285 | |
693 | Battle of Meloria | 1284 | |
695 | Battle of the Gulf of Naples | 1284 | |
697 | Battle of Malta | 1283 | |
698 | Battle of Yamen | 1279 | |
699 | Battle of Algeciras | 1278 | |
700 | Battle of Demetrias | 1272 | |
701 | Battle of Settepozzi | 1263 | |
702 | Battle of Giglio | 1241 | |
706 | Battle of Damme | 1213 | |
707 | Battle of Sandwich (1217) | 1217 | |
712 | Genpei War (Gempei War) | 1180 | |
714 | Battle of Dan-no-ura | 1185 | |
717 | Battle of Yashima | 1185 | |
721 | Battle of Fimreite | 1184 | |
723 | Battle of Mizushima | 1183 | |
725 | Battle of Caishi | 1161 | |
728 | Battle of Tangdao | 1161 | |
729 | Siege of Ascalon | 1153 | |
731 | Battle of Dyrrhachium | 1081 | |
732 | Battle of Niså | 1062 | |
741 | Battle of the Helgeå | 1026 | |
746 | Battle of Bach Dang | 981 | |
749 | Battle of the Straits | 965 | |
750 | Battle of Svolder | 999 | |
752 | Battle of Bạch Đằng | 938 | |
755 | Siege of Constantinople by the Rus | 941 | |
756 | Battle of Langshan Jiang | 919 | |
764 | Battle of Cephalonia | 880 | |
768 | Battle of the Gulf of Corinth | 873 | |
772 | Battle of Kardia | 872 | |
784 | Battle of the Masts | 655 | |
786 | Battle of Sena Gallica | 551 | |
788 | Battle of Cap Bon (468) | 468 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.axis { | |
font: 10px sans-serif; | |
} | |
.axis path, | |
.axis line { | |
fill: none; | |
stroke: #000; | |
shape-rendering: crispEdges; | |
} | |
.axis--x path { | |
display: none; | |
} | |
.line { | |
fill: none; | |
stroke: steelblue; | |
stroke-width: 1.5px; | |
} | |
</style> | |
<body> | |
<script src="https://d3js.org/d3.v4.min.js"></script> | |
<script> | |
var margin = {top: 20, right: 20, bottom: 30, left: 50}, | |
width = 960 - margin.left - margin.right, | |
height = 500 - margin.top - margin.bottom, | |
magnitude = 0; | |
var parseTime = d3.timeParse("%Y"); | |
var x = d3.scaleTime() | |
.range([0, width]) | |
.domain([new Date(100, 0, 0, 0), new Date(2020, 0, 0, 0)]); | |
var y = d3.scaleLinear() | |
.range([height, 0]); | |
var line = d3.line() | |
.x(function(d) { | |
console.log(x(parseTime(d.bat_year))); | |
//console.log(parseTime(d.bat_year)); | |
return x(parseTime(d.bat_year)); }) | |
.y(function(d) { | |
console.log(d.magnitude); | |
return y(d.magnitude); }); | |
var svg = d3.select("body").append("svg") | |
.attr("width", width + margin.left + margin.right) | |
.attr("height", height + margin.top + margin.bottom) | |
.append("g") | |
.attr("transform", "translate(" + margin.left + "," + margin.top + ")"); | |
d3.csv("battle_freq.csv", function(error, data) { | |
data.forEach( function(d) { | |
d.magnitude = magnitude; | |
magnitude += 1; | |
}) | |
console.log("called!") | |
if (error) throw error; | |
x.domain(d3.extent(data, function(d) { return parseTime(d.bat_year); })); | |
y.domain(d3.extent(data, function(d) { return d.magnitude; })); | |
svg.append("g") | |
.attr("class", "axis axis--x") | |
.attr("transform", "translate(0," + height + ")") | |
.call(d3.axisBottom(x)); | |
svg.append("g") | |
.attr("class", "axis axis--y") | |
.call(d3.axisLeft(y)) | |
.append("text") | |
.attr("class", "axis-title") | |
.attr("transform", "rotate(-90)") | |
.attr("y", 6) | |
.attr("dy", ".71em") | |
.style("text-anchor", "end") | |
.text("Magnitude"); | |
svg.append("path") | |
.datum(data) | |
.attr("class", "line") | |
.attr("d", line); | |
}); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment