New graphs

This commit is contained in:
pietervdvn 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, "")

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 478 KiB

After

Width:  |  Height:  |  Size: 477 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 KiB

After

Width:  |  Height:  |  Size: 514 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 KiB

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 435 KiB

After

Width:  |  Height:  |  Size: 436 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 KiB

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 KiB

After

Width:  |  Height:  |  Size: 427 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

File diff suppressed because it is too large Load diff

View file