forked from MapComplete/MapComplete
New graphs
This commit is contained in:
parent
37f27bf58f
commit
770c89dd27
20 changed files with 8115 additions and 8 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue