lib/datagovsg-charts.js
function customizeTimeAxis(component, type) {
  var axis = component.xAxis;
  if (axis instanceof Plottable.Axes.Time) {
    var customTimeAxisConfigs = getCustomTimeAxisConfigs(type);
    axis.axisConfigurations(customTimeAxisConfigs);
    if (type === 'year' || type === 'financial_year') {
      axis.tierLabelPositions(customTimeAxisConfigs.map(function (v) {
        return 'center';
      }));
    }
  }
}
function customizeTimeAxis(component, type) {
  var axis = component.xAxis;
  if (axis instanceof Plottable.Axes.Time) {
    var customTimeAxisConfigs = getCustomTimeAxisConfigs(type);
    axis.axisConfigurations(customTimeAxisConfigs);
    if (type === 'year' || type === 'financial_year') {
      axis.tierLabelPositions(customTimeAxisConfigs.map(function (v) {
        return 'center';
      }));
    }
  }
}
function customizeTimeAxis ( component , type ) { var axis = component . xAxis ; if ( axis instanceof Plottable . Axes . Time ) { var customTimeAxisConfigs = getCustomTimeAxisConfigs ( type ) ; axis . axisConfigurations ( customTimeAxisConfigs ) ; if ( type === 'year' || type === 'financial_year' ) { axis . tierLabelPositions ( customTimeAxisConfigs . map ( function ( v ) { return 'center' ; } ) ) ; } } }
type can be one of the following
'year'
'financial_year'
'half_year'
'financial_half_year'
'quarter'
'financial_quarter'
'month'
'week'
'date'
'datetime'
'time'
type can be one of the following year financial_year half_year financial_half_year quarter financial_quarter month week date datetime time