Skip to content

Commit 6573249

Browse files
committed
Switch bucket size for problem analysis
The graph has less space on the page, so the buckets got too narrow.
1 parent 05cd3a6 commit 6573249

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

webapp/public/js/domjudge.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,9 +1119,7 @@ function resizeMobileTeamNamesAndProblemBadges() {
11191119
});
11201120
}
11211121

1122-
function createSubmissionGraph(submissionStats, contestStartTime, contestDurationSeconds, submissions) {
1123-
const minBucketCount = 30;
1124-
const maxBucketCount = 301;
1122+
function createSubmissionGraph(submissionStats, contestStartTime, contestDurationSeconds, submissions, minBucketCount = 30, maxBucketCount = 301) {
11251123
const units = [
11261124
{ 'name': 'seconds', 'convert': 1, 'step': 60 },
11271125
{ 'name': 'minutes', 'convert': 60, 'step': 15 },

webapp/templates/jury/analysis/problem.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ $(function(){
234234
}{{ loop.last ? '' : ',' }}
235235
{% endfor %}
236236
];
237-
createSubmissionGraph(submission_stats, contest_start_time, contest_duration_seconds, submissions);
237+
createSubmissionGraph(submission_stats, contest_start_time, contest_duration_seconds, submissions, minBucketCount = 10, maxBucketCount = 101);
238238
})
239239
</script>
240240
{% include 'jury/analysis/download_graphs.html.twig' %}

0 commit comments

Comments
 (0)