code: function buildAxis() {
              let minor, major;
  
              if (xAxisFormat === 'custom' && typeof xAxisCustomFormat === 'string') {
                  minor = {
                      tick: xTicks,
                      format: d3TimeFormat.timeFormat(xAxisCustomFormat)
                  };
                  major = null;
              } else {
                  ({minor, major} = getTimeSeriesAxis(dataByDate, width, xAxisFormat, locale));
  
                  xMonthAxis = d3Axis.axisBottom(xScale)
                      .ticks(major.tick)
                      .tickSize(0, 0)
                      .tickFormat(major.format);
              }
  
              xAxis = d3Axis.axisBottom(xScale)
                  .ticks(minor.tick)
                  .tickSize(10, 0)
                  .tickPadding(tickPadding)
                  .tickFormat(minor.format);
  
              yAxis = d3Axis.axisLeft(yScale)
                  .ticks(yTicks)
                  .tickSize([0])
                  .tickPadding(tickPadding)
                  .tickFormat(getFormattedValue);
  
              drawGridLines(minor.tick, yTicks);
          }
docs: Creates the d3 x and y axis, setting orientations
  @private