sol-vote/templates/assets/js/bs-init.js

10 lines
278 B
JavaScript
Raw Normal View History

2024-02-19 15:18:49 +11:00
document.addEventListener('DOMContentLoaded', function() {
var charts = document.querySelectorAll('[data-bss-chart]');
for (var chart of charts) {
// Create the chart
chart.chart = new Chart(chart, JSON.parse(chart.dataset.bssChart));
}
}, false);