Fix sigma input range

This commit is contained in:
2025-05-18 22:19:13 +02:00
parent 116cf87539
commit d8f476013a

View File

@@ -53,7 +53,7 @@ chart = {
const sigControl = controlsContainer.append("div").style("display","flex").style("align-items","center").style("gap","10px");
sigControl.append("label").text("Sigma:").style("font-size","16px");
sigControl.append("input")
.attr("type","range").attr("min", -1).attr("max", 2).attr("step", 1)
.attr("type","range").attr("min", -2).attr("max", 2).attr("step", 1)
.property("value", Math.log2(selectedSig))
.on("input", function() { selectedSig = 2 ** (+this.value); sigControl.select("span").text(selectedSig); updateChart(filteredData()); });
sigControl.append("span").text(selectedSig).style("font-size","16px");