mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
gvisor.dev: Fix chart axis precision to one decimal point to avoid overflow.
PiperOrigin-RevId: 438428560
This commit is contained in:
committed by
gVisor bot
parent
be49295381
commit
8e55783cd3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user