From 28f8fd2192ae6ca828aa73b21d3cbb0840f2f030 Mon Sep 17 00:00:00 2001 From: Alfred Melch Date: Sat, 10 Aug 2019 09:34:57 +0200 Subject: [PATCH] Style results table --- benchmarking/public/loadChart.html | 2 +- benchmarking/public/results.html | 16 +++++++++------- benchmarking/src/results.js | 2 +- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/benchmarking/public/loadChart.html b/benchmarking/public/loadChart.html index 43d5787..ff7fe52 100644 --- a/benchmarking/public/loadChart.html +++ b/benchmarking/public/loadChart.html @@ -55,7 +55,7 @@

Load chart

- Back to benchmark + Back to benchmark

File-drop

diff --git a/benchmarking/public/results.html b/benchmarking/public/results.html index ce2950f..26c2832 100644 --- a/benchmarking/public/results.html +++ b/benchmarking/public/results.html @@ -18,6 +18,7 @@ } td:first-child { white-space: nowrap; + padding: 4px 8px; } .characteristics { display: flex; @@ -25,12 +26,13 @@ .characteristics > span { flex: 1; display: block; + padding: 4px 8px; text-align: center; border-left: 1px solid black; border-right: 1px solid black; } .characteristics > span[active] { - background-color: greenyellow; + background-color: #87d241; } /* Charts */ #chartRoot { @@ -46,7 +48,7 @@

Results

- Back to benchmark + Back to benchmark

Select Case

@@ -59,7 +61,7 @@

Dimensions

- + - + - + - + - +
DeviceDevice:
DesktopMobile @@ -67,7 +69,7 @@
BrowserBrowser:
Firefox @@ -78,7 +80,7 @@
DatasetDataset:
Simplify.js exampleBavaria outline @@ -86,13 +88,13 @@
High QualityHigh Quality:
On Off
ChartsCharts:
Simplify.js vs. Simplify.wasm diff --git a/benchmarking/src/results.js b/benchmarking/src/results.js index 70aa284..e05103f 100644 --- a/benchmarking/src/results.js +++ b/benchmarking/src/results.js @@ -22,7 +22,7 @@ const dimensionMap = { set1: [[0], [0, 1, 2], [0], [0, 1], [0]], set2: [[0], [2], [0], [0, 1], [1]], set3: [[0], [0, 3], [1], [0, 1], [0]], - set4: [[0], [0], [1], [0, 1], [2]] + set4: [[0], [0], [1], [0, 1], [0, 2]] } function setDimensions(set) { let map = dimensionMap[set]