War was the leading cause of death in the military nearly every year between 2004 and 2011 until suicides became the top means of dying for troops in 2012 and 2013, according to a bar chart published this week in a monthly Pentagon medical statistical analysis journal. For those last two years, suicide outranked war, cancer, heart disease, homicide, transportation accidents and other causes as the leading killer, accounting for about three in 10 military deaths each of those two years. Transportation accidents, by a small margin, was the leading cause of military deaths in 2008, slightly more than combat. The fighting in Iraq and Afghanistan accounted for anywhere from one out of three deaths in the military — in 2005 and 2010 — to more than 46 percent of deaths in 2007, during the height of the Iraq surge, according to the chart. More than 6,800 troops have died in Iraq and Afghanistan since 9/11 and more than 3,000 additional service members have taken their lives in that same time, according to Pentagon data.