Skip to content

Commit

Permalink
Show median values in aggregated charts by default
Browse files Browse the repository at this point in the history
This switches all charts with the “first” aggregation strategy to
“median” aggregation.

Previously, chart views with aggregated data just showed the first value
of each time period. The median value might be a better choice, because
it is more representative of the data than just picking the first value
available. The arithmetic mean was also considered as a choice, but is
expected not to even out sporadic effects such as public holidays as
nicely as the median function.
  • Loading branch information
pluehne authored and larsxschneider committed Apr 23, 2018
1 parent 9366cee commit cf0e9d1
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions docs/housekeeping-abandoned-orgs.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Abandoned Organizations</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Abandoned Organizations</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/housekeeping-forks.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Forks to Organizations</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Forks to Organizations</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/housekeeping-repo-location.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Personal Repositories with Nonowner Pushes (Last 4 Weeks)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Personal Repositories with Nonowner Pushes (Last 4 Weeks)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/orgs-activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h3>Organizations (Active)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand All @@ -55,7 +55,7 @@ <h3>Organizations (Active)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand Down
4 changes: 2 additions & 2 deletions docs/orgs-total.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Organizations (Total)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Organizations (Total)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/pr-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Pull Request Usage</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Pull Request Usage</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/recommendations-legacy-teams.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Legacy Admin Teams</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Legacy Admin Teams</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions docs/repos-activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h3>Active Repositories in Organizations</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand All @@ -55,7 +55,7 @@ <h3>Active Repositories in Organizations</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand Down Expand Up @@ -125,7 +125,7 @@ <h3>Active Repositories in User Accounts</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand All @@ -146,7 +146,7 @@ <h3>Active Repositories in User Accounts</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand Down
4 changes: 2 additions & 2 deletions docs/repos-feature-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Repository Feature Usage</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Repository Feature Usage</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/repos-total.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h3>Repositories (Total)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand All @@ -55,7 +55,7 @@ <h3>Repositories (Total)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand Down
4 changes: 2 additions & 2 deletions docs/teams-total.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h3>Teams (Total)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"slice": [0, 106],
"default": true
Expand All @@ -35,7 +35,7 @@ <h3>Teams (Total)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions docs/users-activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ <h3>Users (Active/Using License)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand All @@ -59,7 +59,7 @@ <h3>Users (Active/Using License)</h3>
"aggregate":
{
"period": "week",
"method": "first"
"method": "median"
},
"series":
[
Expand Down

0 comments on commit cf0e9d1

Please sign in to comment.