code: function adjustLines() {
              let lineWidth = svg.select('.legend-line').node().getBoundingClientRect().width + markerSize;
              let lineWidthSpace = chartWidth - lineWidth;
  
              if (lineWidthSpace <= 0) {
                  splitInLines();
              }
  
              centerInlineLegendOnSVG();
          }
docs: 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