title: Nice Label Algorithm for Charts with minimum ticks
body: <p>I need to calculate the Ticklabels and the Tickrange for charts manually. </p>
  
  <p>I know the "standard" algorithm for nice ticks (see <a href="http://books.google.de/books?id=fvA7zLEFWZgC&amp;pg=PA61&amp;lpg=PA61&amp;redir_esc=y#v=onepage&amp;q&amp;f=false" rel="noreferrer">http://books.google.de/books?id=fvA7zLEFWZgC&amp;pg=PA61&amp;lpg=PA61&amp;redir_esc=y#v=onepage&amp;q&amp;f=false</a>) and I also know <a href="http://erison.blogspot.nl/2011/07/algorithm-for-optimal-scaling-on-chart.html" rel="noreferrer">this Java implementation</a>. </p>
  
  <p>The problem is, that with this algorithm, the ticks are "too smart". That means, The algorithm decides how much ticks should be displayed. My requirement is, that there  are always 5 Ticks, but these should of course be "pretty". The naive approach would be to get the maximum value, divide with 5 and multiply with the ticknumber. The values here are - of course - not optimal and the ticks are pretty ugly. </p>
  
  <p>Does anyone know a solution for the problem or have a hint for a formal algorithm description?</p>