I have found that when an time-axis label doesn't fit between its graticule and the edge of the chart, the label dangles off the side of the chart. Here is an illustration:
This commit enhances the time axis so that it does not render the label if it will not fit on the chart:
Note that it removes the label after adding (instead of preventing it from being added) because I have read that you cannot reliably find an element's width before it is added to the DOM.
Don't render time axis labels if they would end up being rendered off…
… the side of the chart.
Merge latest changes from 'upstream/master'
So you detect when it's outside of the chart, why not flip it to the other side?
I don't think I understand this comment. Wouldn't a graticule label be misleading if you rendered it some place other that should be?
@mbooth101, yes, yes it would, I misread. Sorry!