linkr/templates/assets/js/bs-init.js

8 lines
234 B
JavaScript
Raw Permalink Normal View History

2023-11-17 00:06:02 +11:00
document.addEventListener('DOMContentLoaded', function() {
var charts = document.querySelectorAll('[data-bss-chart]');
for (var chart of charts) {
chart.chart = new Chart(chart, JSON.parse(chart.dataset.bssChart));
}
}, false);