officerFteCounts = {
var URLPrefix = OFFICER_FTE_SRCDIR
const officerCountsByYear = await labelledSeries([
["2015",URLPrefix+"2015.csv"],
["2016",URLPrefix+"2016.csv"],
["2017",URLPrefix+"2017.csv"],
["2018",URLPrefix+"2018.csv"],
["2019",URLPrefix+"2019.csv"]])
let countsByYearByForceOnly = officerCountsByYear.map(({label:l,data:d})=>{
return {
label:l,
data:d
.filter(el => forces.indexOf(el['Force/Region']) > -1)
.map(el => {
return {force: el['Force/Region'], fte: el["March "+l]}
})
}
})
countsByYearByForceOnly.labels = officerCountsByYear.labels
return countsByYearByForceOnly
}