Fix mu slider
This commit is contained in:
2
app.qmd
2
app.qmd
@@ -45,7 +45,7 @@ chart = {
|
||||
const muControl = controlsContainer.append("div").style("display","flex").style("align-items","center").style("gap","10px");
|
||||
muControl.append("label").text("μ:").style("font-size","16px");
|
||||
muControl.append("input")
|
||||
.attr("type","range").attr("min",minMu).attr("max",maxMu).attr("step",0.1)
|
||||
.attr("type","range").attr("min",minMu).attr("max",maxMu).attr("step",0.2)
|
||||
.property("value",selectedMu)
|
||||
.on("input", function() { selectedMu = +this.value; muControl.select("span").text(selectedMu); updateChart(filteredData()); });
|
||||
muControl.append("span").text(selectedMu).style("font-size","16px");
|
||||
|
||||
Reference in New Issue
Block a user