New graphs

This commit is contained in:
Pieter Vander Vennet 2021-09-04 15:46:18 +02:00
parent 4671329b3a
commit 6d1a112fe1
27 changed files with 8991 additions and 3 deletions

View file

@ -198,7 +198,7 @@ interface PlotSpec {
function createGraph(
title: string,
...options: PlotSpec[]) {
const process = exec("python GenPlot.py \"graphs/" + title + "\"", ((error, stdout, stderr) => {
const process = exec("python3 GenPlot.py \"graphs/" + title + "\"", ((error, stdout, stderr) => {
console.log("Python: ", stdout)
if (error !== null) {
console.error(error)
@ -571,12 +571,12 @@ function createGraphs(allFeatures: ChangeSetData[], appliedFilterDescription: st
})
const total = new Set(allFeatures.map(f => f.properties.user)).size
createGraph(
`Contributors per day${appliedFilterDescription} (${total} total contributors)`,
`Contributors per day${appliedFilterDescription}`,
contributorCountPerDay
.asHist(true)
.keyToDate(true)
.asBar({
name: "Unique contributors per day"
name: `Unique contributors per day (${total} total contributors)`
}),
newContributorsPerDay
.asHist(true)