 // autoTicks: calculate best guess at pleasant ticks for this axis
 // inputs:
 // ax  an axis object
 // roughDTick  rough tick spacing (to be turned into a nice round number)
 // outputs (into ax):
 // tick0: starting point for ticks (not necessarily on the graph)
 // usually 0 for numeric (=10^0=1 for log) or jan 1, 2000 for dates
 // dtick: the actual, nice round tick spacing, usually a little larger than roughDTick
 // if the ticks are spaced linearly (linear scale, categories,
 // log with only full powers, date ticks < month),
 // this will just be a number
 // months: M#
 // years: M# where # is 12*number of years
 // log with linear ticks: L# where # is the linear tick spacing
 // log showing powers plus some intermediates:
 // D1 shows all digits, D2 shows 2 and 5
 axes.autoTicks = function(ax, roughDTick) {
 var base;

 function getBase(v) {
This file has been truncated. show original