old: { below: t, color: "rgb(200, 20, 30)" },
            lines: { steps: true }
        } ]);
    }

    plotWithOptions(0);
    
    $(".controls input").click(function (e) {
        e.preventDefault();
        var t = parseFloat($(this).val().replace('Threshold at ', ''));
        plotWithOptions(t);
    });
});
</script>

 </body>
</html>
