New graphs

This commit is contained in:
Pieter Vander Vennet 2021-08-24 12:13:21 +02:00
parent 279ea497f7
commit 7fd8361eea
20 changed files with 51003 additions and 3 deletions

View file

@ -548,6 +548,13 @@ function createGraphs(allFeatures: ChangeSetData[], appliedFilterDescription: st
1
)
Group.createStackedBarChartPerDay(
"Deletion-changesets per theme" + appliedFilterDescription,
allFeatures.filter(f => f.properties.delete > 0),
f => f.properties.metadata.theme,
1
)
{
// Contributors (unique + unique new) per day
const contributorCountPerDay = new Group<string, string>()
@ -601,7 +608,7 @@ new Histogram(emptyCS.map(f => f.properties.date)).keyToDate().asBar({
}).render()
writeFileSync("centerpoints.geojson", JSON.stringify({
const geojson = {
type: "FeatureCollection",
features: allFeatures.map(f => {
try {
@ -610,7 +617,9 @@ writeFileSync("centerpoints.geojson", JSON.stringify({
console.error("Could not create center point: ", e, f)
}
})
}))
}
writeFileSync("centerpoints.geojson",JSON.stringify(geojson, undefined, 2) )
createGraphs(allFeatures, "")