oesmith/morris.js — pull request #45 by jonthornton (2012-03-26 21:21:15+00:00)
Title: Customizable time-series x-axis labels

I needed to chart data that did not span multiple years, so I made the x-axis labeling configurable. New options:

numXLabels: controls how many x-axis labels morris.js will attempt to show. Margin-checking and duplicate-checking means that the actual number of labels may be less than numXLabels. Defaults to 5.

xLabelMargin: this was defined as a constant before; it's now available as an option. Defaults to 50.

xLabelFormat: works just like dateFormat option, except for x-axis labels. Defaults to return the full year to retain backwards-compatibility.