From ce7aec82cc56a8afa3cf1ce45c02abcf63b28293 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 23 Oct 2023 15:06:33 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix=20data=20resolution=20for=20?= =?UTF-8?q?charts=20with=20datasets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/javascript/vegacharts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/javascript/vegacharts.js b/frontend/javascript/vegacharts.js index 0300703d0..76617ff65 100644 --- a/frontend/javascript/vegacharts.js +++ b/frontend/javascript/vegacharts.js @@ -65,7 +65,7 @@ document.querySelectorAll('[data-vegachart]').forEach((el) => { } else { spec = JSON.parse(document.getElementById(el.dataset.vegachart).textContent) } - if (!spec.data.url && !spec.data.values) { + if (!spec.data.url && !spec.data.values && !spec.datasets) { const data = JSON.parse( document.getElementById(el.dataset.vegachart + '_data').textContent )