'autosize_y' by warren


Report abuse

Created on August 11, 2014 19:03 | Updated about 5 years ago

Link: https://gist.github.com/jywarren/801be868db5c8a9a16b7

A macro to set the y-axis scale to auto-size

setup: function() {
  // code to run on startup
  flotoptions.yaxis.max = null
  $.plot($("#graph"),$W.data,flotoptions);
},
draw: function() {
    // code to run every frame
}