diff --git a/examples/common/utils.js b/examples/common/utils.js index 44e6aed..2537514 100644 --- a/examples/common/utils.js +++ b/examples/common/utils.js @@ -76,7 +76,7 @@ FPS.prototype.update = function() { var switches = {}; -d3.select("[data-switch]").each(function(s) { +d3.selectAll("[data-switch]").each(function(s) { var name = d3.select(this).attr("data-switch"); var modes = d3.select(this).selectAll("[data-value]"); var valueDefault = modes.filter(".active").attr("data-value"); @@ -119,4 +119,4 @@ function loadData(path, callback) { document.addEventListener("DOMContentLoaded", function(e) { d3.select(".initializing").remove(); -}); \ No newline at end of file +});