Skip to content

Instantly share code, notes, and snippets.

oluckyman /
Last active December 20, 2015 21:39
Time axis with centered labels and sticky month names.

Hint: Use double click to zoom in and shift + double click to zoom out.

I was using require.js and backbone.js and therefore there is a lot of extra code here. So I will highlight the most useful parts.

There is a few features I want to share:

  • Axis labels between ticks
  • Sticky month names that remain visible at any zoom level