New graphs

This commit is contained in:
Pieter Vander Vennet 2021-09-08 17:32:31 +02:00
parent 37f27bf58f
commit 770c89dd27
20 changed files with 8115 additions and 8 deletions

View file

@ -506,13 +506,6 @@ function stackHists<K, V>(hists: [V, Histogram<K>][]): [V, Histogram<K>][] {
function createGraphs(allFeatures: ChangeSetData[], appliedFilterDescription: string) {
const hist = new Histogram<string>(allFeatures.map(f => f.properties.metadata.theme))
hist
.addCountToName()
.createOthersCategory("other", 40)
.asPie({
name: "Changesets per theme" + appliedFilterDescription
}).render()
hist
.createOthersCategory("other", 20)
.addCountToName()
@ -532,7 +525,13 @@ function createGraphs(allFeatures: ChangeSetData[], appliedFilterDescription: st
.asPie({
name: "Changesets per host" + appliedFilterDescription
}).render()
new Histogram<string>(allFeatures.map(f => f.properties.metadata.theme))
.createOthersCategory("< 25 changesets", 25)
.addCountToName()
.asPie({
name: "Changesets per theme (pie)" + appliedFilterDescription
}).render()
Group.createStackedBarChartPerDay(
"Changesets per theme" + appliedFilterDescription,