Skip to content

Commit 1c7c9d1

Browse files
committed
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.
1 parent 0f0f46a commit 1c7c9d1

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
.card {
1717
height: 100%;
1818
}
19-
20-
/* Don't show x-axis ticks/ticklines for max runtimes chart. */
21-
#maxruntime .nv-x.nv-axis .tick {
22-
display: none;
23-
}
2419
</style>
2520
{% endblock %}
2621

@@ -133,7 +128,10 @@ $(function(){
133128
chart.yAxis
134129
.tickFormat(d3.format('.3f'))
135130
.axisLabel('Runtime(in s)');
136-
chart.xAxis.axisLabel("Judgings");
131+
chart.xAxis
132+
.ticks(0)
133+
.tickValues([])
134+
.axisLabel("Judgings");
137135
d3.select('#maxruntime svg')
138136
.datum(run_max_times)
139137
.call(chart);

0 commit comments

Comments
 (0)