From acfe871d1dffce5ba99ee288a1471bbedbe5ec50 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Fri, 10 Nov 2023 17:57:07 +0100 Subject: [PATCH] adding ScatterChart2CsvConverterTest --- docs/SymptomsCausedByCOVIDLots/index.html | 1 + .../js/ScatterChart2CsvConverter.js | 18 +++++++++++ .../test/ScatterChart2CsvConverterTest.js | 31 +++++++++++++++++++ .../SymptomVsSymptomChartDataProviderTest.js | 10 +++--- .../test/index.test.html | 2 ++ docs/Utils.js | 2 ++ 6 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 docs/SymptomsCausedByCOVIDLots/js/ScatterChart2CsvConverter.js create mode 100644 docs/SymptomsCausedByCOVIDLots/test/ScatterChart2CsvConverterTest.js diff --git a/docs/SymptomsCausedByCOVIDLots/index.html b/docs/SymptomsCausedByCOVIDLots/index.html index f47674f28d6..d636a307d92 100644 --- a/docs/SymptomsCausedByCOVIDLots/index.html +++ b/docs/SymptomsCausedByCOVIDLots/index.html @@ -40,6 +40,7 @@ + + @@ -30,6 +31,7 @@ + diff --git a/docs/Utils.js b/docs/Utils.js index e9e315a7ee7..97c9452177d 100644 --- a/docs/Utils.js +++ b/docs/Utils.js @@ -24,4 +24,6 @@ class Utils { static sliceDict(dict, start, end) { return Object.fromEntries(Object.entries(dict).slice(start, end)); } + + static zip = rows => rows[0].map((_, c) => rows.map(row => row[c])) }