JSFiddle - React, Tailwind, and code Playground

by fenderistic

HTML

<script src="http://people.iola.dk/olau/flot/jquery.flot.js"></script>
<h1>Flot Examples</h1> 
<div id="placeholder" style="width:600px;height:300px;"></div>

JavaScript

$(function () {
    var d1 = [];
    //Assuming you're always starting at zero
    var lowest = Math.sin(0);
    for (var i = 0; i < 14; i += 0.5) {
        d1.push([i, Math.sin(i)]);
        if (Math.sin(i) < lowest) {
            lowest = Math.sin(i);
        }
    }
    alert(lowest)
    $.plot($("#placeholder"), [d1]);
});