src/charts/bar.js
function drawLabels() {
            let labelXPosition = isHorizontal ? _labelsHorizontalX : _labelsVerticalX;
            let labelYPosition = isHorizontal ? _labelsHorizontalY : _labelsVerticalY;
            let text = _labelsFormatValue

            if (labelEl) {
                svg.selectAll('.percentage-label-group').remove();
            }

            labelEl = svg.select('.metadata-group')
              .append('g')
                .classed('percentage-label-group', true)
                .selectAll('text')
                .data(data.reverse())
                .enter()
              .append('text');

            labelEl
                .classed('percentage-label', true)
                .attr('x', labelXPosition)
                .attr('y', labelYPosition)
                .text(text)
                .attr('font-size', labelsSize + 'px')
        }
function drawLabels() {
            let labelXPosition = isHorizontal ? _labelsHorizontalX : _labelsVerticalX;
            let labelYPosition = isHorizontal ? _labelsHorizontalY : _labelsVerticalY;
            let text = _labelsFormatValue

            if (labelEl) {
                svg.selectAll('.percentage-label-group').remove();
            }

            labelEl = svg.select('.metadata-group')
              .append('g')
                .classed('percentage-label-group', true)
                .selectAll('text')
                .data(data.reverse())
                .enter()
              .append('text');

            labelEl
                .classed('percentage-label', true)
                .attr('x', labelXPosition)
                .attr('y', labelYPosition)
                .text(text)
                .attr('font-size', labelsSize + 'px')
        }
function drawLabels ( ) { let labelXPosition = isHorizontal ? _labelsHorizontalX : _labelsVerticalX ; let labelYPosition = isHorizontal ? _labelsHorizontalY : _labelsVerticalY ; let text = _labelsFormatValue if ( labelEl ) { svg . selectAll ( '.percentage-label-group' ) . remove ( ) ; } labelEl = svg . select ( '.metadata-group' ) . append ( 'g' ) . classed ( 'percentage-label-group' , true ) . selectAll ( 'text' ) . data ( data . reverse ( ) ) . enter ( ) . append ( 'text' ) ; labelEl . classed ( 'percentage-label' , true ) . attr ( 'x' , labelXPosition ) . attr ( 'y' , labelYPosition ) . text ( text ) . attr ( 'font-size' , labelsSize + 'px' ) }
Draws labels at the end of each bar
@private
@return {void}
Draws labels at the end of each bar