How can i fill color for dataseries below or above the threshold using Flot? -
how fill color below or above threshold. threshold plugin changes line of color need fill color on dataseries (eg: below : 5 or above :5 ) when line drawing on canvas using flot line chart. can suggest me. thanks
are saying fill color doesn't change above/below threshold, or want show fill if above/below threshold? if former, works me setting fill true in series options:
$.plot("#placeholder", [{ data: d1, threshold: { below: 5, color: "rgb(200, 20, 30)" }}], { series: { lines: { show: true, fill: true } } });
see fiddle working example.
Comments
Post a Comment