src/charts/step.js
/**
         * Draws the x and y axis on the svg object within their
         * respective groups
         * @private
         */
Draws the x and y axis on the svg object within their
respective groups
@private
Draws the x and y axis on the svg object within their respective groups @private
function drawAxis(){
            svg.select('.x-axis-group.axis')
                .attr('transform', `translate(0, ${chartHeight})`)
                .call(xAxis);
            if (xAxisLabel) {
                svg.select('.x-axis-label')
                  .append('text')
                    .attr('text-anchor', 'middle')
                    .attr('x', chartWidth / 2)
                    .attr('y', xAxisLabelOffset)
                    .text(xAxisLabel);
            }
            svg.select('.y-axis-group.axis')
                .call(yAxis);
            if (yAxisLabel) {
                svg.select('.y-axis-label')
                  .append('text')
                    .attr('x', -chartHeight / 2)
                    .attr('y', yAxisLabelOffset)
                    .attr('text-anchor', 'middle')
                    .attr('transform', 'rotate(270 0 0)')
                    .text(yAxisLabel);
            }
        }
function drawAxis ( ) { svg . select ( '.x-axis-group.axis' ) . attr ( 'transform' , ` ${ chartHeight } ` ) . call ( xAxis ) ; if ( xAxisLabel ) { svg . select ( '.x-axis-label' ) . append ( 'text' ) . attr ( 'text-anchor' , 'middle' ) . attr ( 'x' , chartWidth / 2 ) . attr ( 'y' , xAxisLabelOffset ) . text ( xAxisLabel ) ; } svg . select ( '.y-axis-group.axis' ) . call ( yAxis ) ; if ( yAxisLabel ) { svg . select ( '.y-axis-label' ) . append ( 'text' ) . attr ( 'x' , - chartHeight / 2 ) . attr ( 'y' , yAxisLabelOffset ) . attr ( 'text-anchor' , 'middle' ) . attr ( 'transform' , 'rotate(270 0 0)' ) . text ( yAxisLabel ) ; } }
Draws the x and y axis on the svg object within their
 respective groups
 @private
Draws the x and y axis on the svg object within their respective groups @private