Skip to content

Instantly share code, notes, and snippets.

@ubergeek42
Created October 17, 2018 22:34
Show Gist options
  • Save ubergeek42/27d05ae24b3b0fe2e50c084c023b77b1 to your computer and use it in GitHub Desktop.
Save ubergeek42/27d05ae24b3b0fe2e50c084c023b77b1 to your computer and use it in GitHub Desktop.
maybe fixes the charts?
diff --git a/webapp/src/DOMJudgeBundle/Resources/views/jury/partials/submission_graph.html.twig b/webapp/src/DOMJudgeBundle/Resources/views/jury/partials/submission_graph.html.twig
index 94e688f..0fa0b84 100644
--- a/webapp/src/DOMJudgeBundle/Resources/views/jury/partials/submission_graph.html.twig
+++ b/webapp/src/DOMJudgeBundle/Resources/views/jury/partials/submission_graph.html.twig
@@ -68,6 +68,7 @@ $(function(){
y2: 15 + chart.yAxis.scale()({{timelimit}}),
})
.style("stroke", "#F00");
+ chart.update();
nv.utils.windowResize(chart.update);
return chart;
});
@@ -109,6 +110,7 @@ $(function(){
y2: 15 + chart.yAxis.scale()({{timelimit}}),
})
.style("stroke", "#F00");
+ chart.update();
nv.utils.windowResize(chart.update);
return chart;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment