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 )