Plot.plot({
marks: [
Plot.dot(salamanders, {
x:"totalLength",
y:(d) =>d.weight,
opacity:0.5,
fill:"creekSection",
tip:true
})
],
y:{type:"pow", exponent: 0.5, grid:true},
x:{domain: [0,400], reverse:true, ticks:5, tickFormat:".2f"},
color:{range:["cyan", "purple"]}
})