getMaxNumOfHorizontalTicks = (width, dataPointNumber) => {
        let ticksForWidth = Math.ceil(width / (singleTickWidth + horizontalTickSpacing));

        return dataPointNumber < minEntryNumForDayFormat ? d3Time.timeDay : Math.min(dataPointNumber, ticksForWidth);
    }
Calculates the maximum number of ticks for the x axis
@param  {Number} width               Chart width
@param  {Number} dataPointNumber     Number of entries on the data
@return {Number}                     Number of ticks to render