src/charts/legend.js
function adjustLines() {
            let lineWidth = svg.select('.legend-line').node().getBoundingClientRect().width + markerSize;
            let lineWidthSpace = chartWidth - lineWidth;

            if (lineWidthSpace <= 0) {
                splitInLines();
            }

            centerInlineLegendOnSVG();
        }
function adjustLines() {
            let lineWidth = svg.select('.legend-line').node().getBoundingClientRect().width + markerSize;
            let lineWidthSpace = chartWidth - lineWidth;

            if (lineWidthSpace <= 0) {
                splitInLines();
            }

            centerInlineLegendOnSVG();
        }
function adjustLines ( ) { let lineWidth = svg . select ( '.legend-line' ) . node ( ) . getBoundingClientRect ( ) . width + markerSize ; let lineWidthSpace = chartWidth - lineWidth ; if ( lineWidthSpace <= 0 ) { splitInLines ( ) ; } centerInlineLegendOnSVG ( ) ; }
Depending on the size of the horizontal legend, we are going to add a new
line with the last entry of the legend
@return {void}
@private
Depending on the size of the horizontal legend we are going to add a new line with the last entry of the legend