New graphs
|
@ -567,9 +567,24 @@ function createGraphs(allFeatures: ChangeSetData[], appliedFilterDescription: st
|
||||||
.keyToDate()
|
.keyToDate()
|
||||||
.asLine({
|
.asLine({
|
||||||
compare: (a, b) => a.getTime() - b.getTime(),
|
compare: (a, b) => a.getTime() - b.getTime(),
|
||||||
name: "Running weekly average" + appliedFilterDescription
|
name: "Rolling 7 day average" + appliedFilterDescription
|
||||||
})
|
})
|
||||||
createGraph("Changesets per day (line)" + appliedFilterDescription, perDayLine, perDayAvg)
|
|
||||||
|
const perDayAvgMonth = csPerDay.asRunningAverages(key => {
|
||||||
|
const keys = []
|
||||||
|
for (let i = 0; i < 31; i++) {
|
||||||
|
const otherDay = new Date(new Date(key).getTime() - i * 1000 * 60 * 60 * 24)
|
||||||
|
keys.push(otherDay.toISOString().substr(0, 10))
|
||||||
|
}
|
||||||
|
return keys
|
||||||
|
})
|
||||||
|
.keyToDate()
|
||||||
|
.asLine({
|
||||||
|
compare: (a, b) => a.getTime() - b.getTime(),
|
||||||
|
name: "Rolling 31 day average" + appliedFilterDescription
|
||||||
|
})
|
||||||
|
|
||||||
|
createGraph("Changesets per day (line)" + appliedFilterDescription, perDayLine, perDayAvg, perDayAvgMonth)
|
||||||
|
|
||||||
new Histogram<string>(allFeatures.map(f => f.properties.metadata.host))
|
new Histogram<string>(allFeatures.map(f => f.properties.metadata.host))
|
||||||
.asPie({
|
.asPie({
|
||||||
|
|
Before Width: | Height: | Size: 293 KiB After Width: | Height: | Size: 322 KiB |
Before Width: | Height: | Size: 648 KiB After Width: | Height: | Size: 736 KiB |
Before Width: | Height: | Size: 330 KiB After Width: | Height: | Size: 359 KiB |
Before Width: | Height: | Size: 267 KiB After Width: | Height: | Size: 269 KiB |
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 229 KiB |
Before Width: | Height: | Size: 561 KiB After Width: | Height: | Size: 560 KiB |
Before Width: | Height: | Size: 591 KiB After Width: | Height: | Size: 586 KiB |
Before Width: | Height: | Size: 763 KiB After Width: | Height: | Size: 792 KiB |
Before Width: | Height: | Size: 792 KiB After Width: | Height: | Size: 801 KiB |
Before Width: | Height: | Size: 472 KiB After Width: | Height: | Size: 498 KiB |
Before Width: | Height: | Size: 512 KiB After Width: | Height: | Size: 514 KiB |
Before Width: | Height: | Size: 516 KiB After Width: | Height: | Size: 532 KiB |
Before Width: | Height: | Size: 570 KiB After Width: | Height: | Size: 578 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 139 KiB After Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 101 KiB |