src/charts/stacked-area.js
/**
         * Creates the d3 x and y axis, setting orientations
         * @private
         */
Creates the d3 x and y axis, setting orientations
@private
Creates the d3 x and y axis setting orientations @private
function buildAxis() {
            let dataTimeSpan = yScale.domain()[1] - yScale.domain()[0];
            let yTickNumber = dataTimeSpan < verticalTicks - 1 ? dataTimeSpan : verticalTicks;
            let minor, major;
            if (forceAxisSettings === 'custom' && typeof forcedXFormat === 'string') {
                minor = {
                    tick: forcedXTicks,
                    format: d3TimeFormat.timeFormat(forcedXFormat)
                };
                major = null;
            } else {
                ({minor, major} = timeAxisHelper.getXAxisSettings(dataByDate, width, forceAxisSettings));
                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.axisRight(yScale)
                .ticks(yTickNumber)
                .tickSize([0])
                .tickPadding(tickPadding)
                .tickFormat(getFormattedValue);
            drawGridLines(minor.tick, yTickNumber);
        }
function buildAxis ( ) { let dataTimeSpan = yScale . domain ( ) [ 1 ] - yScale . domain ( ) [ 0 ] ; let yTickNumber = dataTimeSpan < verticalTicks - 1 ? dataTimeSpan : verticalTicks ; let minor , major ; if ( forceAxisSettings === 'custom' && typeof forcedXFormat === 'string' ) { minor = { tick : forcedXTicks , format : d3TimeFormat . timeFormat ( forcedXFormat ) } ; major = null ; } else { ( { minor , major } = timeAxisHelper . getXAxisSettings ( dataByDate , width , forceAxisSettings ) ) ; 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 . axisRight ( yScale ) . ticks ( yTickNumber ) . tickSize ( [ 0 ] ) . tickPadding ( tickPadding ) . tickFormat ( getFormattedValue ) ; drawGridLines ( minor . tick , yTickNumber ) ; }
Creates the d3 x and y axis, setting orientations
 @private
Creates the d3 x and y axis setting orientations @private