Components Interactions Examples Tutorials API FAQ

Time Axis

var scale = new Plottable.Scales.Time()
  .domain([new Date(2015, 0, 1), new Date(2015, 11, 31)]);
var axis = new Plottable.Axes.Time(scale, "bottom")

window.addEventListener("resize", function() {

Public Methods

Gets/sets the possible axis configurations for each tier. The Time Axis will choose the most precise configuration that will display in the available space.

Gets/sets the orientation for the axis. Supported values are "top" and "bottom".

Gets/sets the label positions for each tier. The only supported values are "bottom" and "center".