How to find min and max of multiple y-axes in FLOT -
i using flot plot charts, , not providing max or min value y-axis. getting auto-scaled. want min , max value of y-axes. following code works first y-axis, want multiple axes.
var min = plot.getaxes().yaxis.min;
loop through yaxes
array in options:
var yaxes = plot.getoptions().yaxes; var min = yaxes[0].min; var max = yaxes[0].max; (var = 1; < yaxes.length; i++) { if (yaxes[i].min < min) { min = yaxes[i].min; } if (yaxes[i].max > max) { max = yaxes[i].max; } }
Comments
Post a Comment