Skip to content

Commit 6530dff

Browse files
as6325400meisterT
authored andcommitted
Change the line chart to a bar chart.
fix
1 parent 2c2174e commit 6530dff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,18 +406,17 @@ for (let minute = 0; minute < contest_duration_minutes; minute++) {
406406
}
407407
408408
nv.addGraph(function() {
409-
var chart = nv.models.stackedAreaChart()
409+
var chart = nv.models.multiBarChart()
410410
// .margin({left: 100}) //Adjust chart margins to give the x-axis some breathing room.
411411
// .useInteractiveGuideline(true) //We want nice looking tooltips and a guideline!
412412
// .transitionDuration(350) //how fast do you want the lines to transition?
413413
// .showLegend(true) //Show the legend, allowing users to turn on/off line series.
414414
.showControls(false)
415+
.stacked(true)
415416
.x(function(d) { return d[0] }) //We can modify the data accessor functions...
416417
.y(function(d) { return d[1] }) //...in case your data is formatted differently.
417418
.showYAxis(true) //Show the y-axis
418419
.showXAxis(true) //Show the x-axis
419-
.forceX([0, {{ (current_contest.endtime - current_contest.starttime) / 60 }}])
420-
.forceY([0, max_submissions_per_minute * 1.1 ])
421420
;
422421
chart.xAxis //Chart x-axis settings
423422
.axisLabel('Contest Time(minutes)')

0 commit comments

Comments
 (0)