'set_graph_height' by warren


Report abuse

Created on July 17, 2013 15:47 | Updated about 6 years ago

Link: https://gist.github.com/jywarren/6021816

Sets the graph maximum y-axis height

setup: function() {
  // code to run on startup
  flotoptions.yaxis.max = prompt("Enter a maximum graph height percentage, such as '50'");$.plot($("#graph"),$W.data,flotoptions);
},
draw: function() {
  // code to run every frame

}