title: Flot: Show a minimum amount of ticks
body: <p>Using <a href="http://www.flotcharts.org/" rel="nofollow">flot charts</a> I would like to specify a minimum of ticks to show on the y-axis. In my case I would like to always show at least 10 ticks (values 1-10), but if my y-axis max exceeds 10 then I would like flot to draw the chart with its normal tick algorithm. I currently have it sort of working by specifying a function for the ticks paramater. </p>
  
  <pre><code>ticks: function(axis){
             var ticks = [];
             if(axis.max &lt; 10){
                  ticks = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
             }
             else{
               for(var i = 1; i &lt; axis.max; i++){
                   ticks.push(i);
               }
             }
             return ticks;
  }, 
  </code></pre>
  
  <p>The problem with this is that I get a lot more ticks than I want when the <code>axis.max</code> is greater than 10. Is there a way to avoid this?  </p>
  
  <p>I originally thought I could return null, but flot is expecting an array to be returned. :(</p>