We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8d50f commit 63e72f8Copy full SHA for 63e72f8
webapp/templates/jury/analysis/contest_overview.html.twig
@@ -345,6 +345,15 @@ nv.addGraph(function() {
345
d3.select('#graph_problems svg')
346
.datum(problem_stats)
347
.call(chart);
348
+ // Hide bars with 0 height after rendering
349
+ chart.dispatch.on('renderEnd', function() {
350
+ d3.selectAll('#graph_problems .nv-bar').each(function(d) {
351
+ if (d.value === 0) {
352
+ d3.select(this).attr('height', 0);
353
+ d3.select(this).attr('y', chart.yAxis.scale()(0));
354
+ }
355
+ });
356
357
nv.utils.windowResize(chart.update);
358
return chart;
359
});
0 commit comments