From 8e55783cd36c391a4ea02383a3d5b83cf5099aac Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Wed, 30 Mar 2022 16:45:10 -0700 Subject: [PATCH] gvisor.dev: Fix chart axis precision to one decimal point to avoid overflow. PiperOrigin-RevId: 438428560 --- website/_includes/graph.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/_includes/graph.html b/website/_includes/graph.html index ba4cf9840..74b9c3ba5 100644 --- a/website/_includes/graph.html +++ b/website/_includes/graph.html @@ -90,7 +90,7 @@ d3.csv("{{ include.url }}", function(d, i, columns) { var x1_domain = runtimes; } - // Determine varaible margins. + // Determine variable margins. var x0_domain = data.map(d => d[x0_key]); var margin_bottom_pad = 0; if (x0_domain.length > 8) { @@ -170,7 +170,7 @@ d3.csv("{{ include.url }}", function(d, i, columns) { } g.append("g") .attr("class", "axis") - .call(d3.axisLeft(y).ticks(null, "s")) + .call(d3.axisLeft(y).ticks(null, ".1s")) .append("text") .attr("x", -30.0) .attr("y", y(y.ticks().pop()) - 10.0)