src/charts/bar.js
function drawVerticalGridLines() {
            maskGridLines = svg.select('.grid-lines-group')
                .selectAll('line.horizontal-grid-line')
                .data(yScale.ticks(yTicks).slice(1))
                .enter()
                  .append('line')
                    .attr('class', 'horizontal-grid-line')
                    .attr('x1', (xAxisPadding.left))
                    .attr('x2', chartWidth)
                    .attr('y1', (d) => yScale(d))
                    .attr('y2', (d) => yScale(d))

            drawHorizontalExtendedLine();
        }
function drawVerticalGridLines() {
            maskGridLines = svg.select('.grid-lines-group')
                .selectAll('line.horizontal-grid-line')
                .data(yScale.ticks(yTicks).slice(1))
                .enter()
                  .append('line')
                    .attr('class', 'horizontal-grid-line')
                    .attr('x1', (xAxisPadding.left))
                    .attr('x2', chartWidth)
                    .attr('y1', (d) => yScale(d))
                    .attr('y2', (d) => yScale(d))

            drawHorizontalExtendedLine();
        }
function drawVerticalGridLines ( ) { maskGridLines = svg . select ( '.grid-lines-group' ) . selectAll ( 'line.horizontal-grid-line' ) . data ( yScale . ticks ( yTicks ) . slice ( 1 ) ) . enter ( ) . append ( 'line' ) . attr ( 'class' , 'horizontal-grid-line' ) . attr ( 'x1' , ( xAxisPadding . left ) ) . attr ( 'x2' , chartWidth ) . attr ( 'y1' , ( d ) => yScale ( d ) ) . attr ( 'y2' , ( d ) => yScale ( d ) ) drawHorizontalExtendedLine ( ) ; }
Draws the grid lines for a vertical bar chart
@return {void}
Draws the grid lines for a vertical bar chart