From 3f1899fc46e66aa80e9f8a469839b5b8a7b8506c Mon Sep 17 00:00:00 2001 From: Kanishkar J Date: Wed, 3 Oct 2018 14:51:26 +0530 Subject: Hide line with value zero (#882) --- website/app.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'website') diff --git a/website/app.js b/website/app.js index c058829a1..84fb0f52d 100644 --- a/website/app.js +++ b/website/app.js @@ -28,7 +28,7 @@ export function createExecTimeColumns(data) { ...data.map(d => { const benchmark = d.benchmark[name]; const meanValue = benchmark ? benchmark.mean : 0; - return meanValue || 0; + return meanValue || null; }) ]); } @@ -44,9 +44,9 @@ export function createBinarySizeColumns(data) { return name === "deno" ? binarySizeData : 0; default: if (!binarySizeData) { - return 0; + return null; } - return binarySizeData[name] || 0; + return binarySizeData[name] || null; } }) ]); @@ -59,9 +59,9 @@ export function createThreadCountColumns(data) { ...data.map(d => { const threadCountData = d["thread_count"]; if (!threadCountData) { - return 0; + return null; } - return threadCountData[name] || 0; + return threadCountData[name] || null; }) ]); } @@ -73,9 +73,9 @@ export function createSyscallCountColumns(data) { ...data.map(d => { const syscallCountData = d["syscall_count"]; if (!syscallCountData) { - return 0; + return null; } - return syscallCountData[name] || 0; + return syscallCountData[name] || null; }) ]); } -- cgit v1.2.3