Skip to content

Commit

Permalink
🩹 fix data resolution for charts with datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Oct 23, 2023
1 parent f17b2bf commit c5a5fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/javascript/vegacharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit c5a5fc4

Please sign in to comment.