From 849ca78ee2bebffb1ee54c352c0446d015f756b7 Mon Sep 17 00:00:00 2001 From: Kevin Jilissen Date: Sun, 16 Mar 2025 10:52:43 +0100 Subject: [PATCH] Do not initialize maxruntime ticks Not initializing ticks seems like a better solution than hiding them in CSS. Visually equivalent, but does not create all the DOM elements for the ticks. --- webapp/templates/jury/analysis/problem.html.twig | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/webapp/templates/jury/analysis/problem.html.twig b/webapp/templates/jury/analysis/problem.html.twig index 9da518eaa1..00486299ef 100644 --- a/webapp/templates/jury/analysis/problem.html.twig +++ b/webapp/templates/jury/analysis/problem.html.twig @@ -16,11 +16,6 @@ .card { height: 100%; } - -/* Don't show x-axis ticks/ticklines for max runtimes chart. */ -#maxruntime .nv-x.nv-axis .tick { - display: none; -} {% endblock %} @@ -133,7 +128,10 @@ $(function(){ chart.yAxis .tickFormat(d3.format('.3f')) .axisLabel('Runtime(in s)'); - chart.xAxis.axisLabel("Judgings"); + chart.xAxis + .ticks(0) + .tickValues([]) + .axisLabel("Judgings"); d3.select('#maxruntime svg') .datum(run_max_times) .call(chart);