code: function(properties, data) {
              var axisType = data.xAxisType,
                  axisProperties = this.parseUtils.getXAxisProperties(properties),
                  orientation = (this.axesAreInverted) ? 'vertical' : 'horizontal',
                  colorScheme = this.getAxisColorScheme();
              // add some extra info to the axisProperties as needed
              axisProperties.chartType = properties.chart;
              axisProperties.axisLength = $(this.renderTo).width();
              if(axisProperties['axisTitle.text']){
                  axisProperties['axisTitle.text'] = Splunk.JSCharting.ParsingUtils.escapeHtml(axisProperties['axisTitle.text']);
              }
  
              switch(axisType) {
                  case 'category':
                      this.xAxis = new Splunk.JSCharting.CategoryAxis(axisProperties, data, orientation, colorScheme);
                      break;
                  case 'time':
                      this.xAxis = new Splunk.JSCharting.TimeAxis(axisProperties, data, orientation, colorScheme, this.exportMode);
                      break;
                  default:
                      // assumes a numeric axis
                      this.xAxis = new Splunk.JSCharting.NumericAxis(axisProperties, data, orientation, colorScheme);
                      break;
  
              }
              this.hcConfig.xAxis = this.xAxis.getConfig();
              if(this.exportMode && (axisType === 'time')) {
                  var xAxisMargin,
                      spanSeries = data._spanSeries,
                      span = (spanSeries && spanSeries.length > 0) ? parseInt(spanSeries[0], 10) : 1,
                      secsPerDay = 60 * 60 * 24,
                      secsPerYear = secsPerDay * 365;
  
                  if(span >= secsPerYear) {
                      xAxisMargin = 15;
                  }
                  else if(span >= secsPerDay) {
                      xAxisMargin = 25;
                  }
                  else {
                      xAxisMargin = 35;
                  }
                  this.hcConfig.xAxis.title.margin = xAxisMargin;
              }
              if(typeof this.hcConfig.xAxis.title.text === 'undefined') {
                  this.hcConfig.xAxis.title.text = this.processedData.xAxisKey;
              }
          }
docs: ////////////////////////////////////////////////////////////////////////// helper methods for handling label and axis formatting