code: function centerVerticalLegendOnSVG() {
              let legendGroupSize = svg.select('g.legend-container-group').node().getBoundingClientRect().width;
              let emptySpace = width - legendGroupSize;
              let newXPosition = (emptySpace / 2) - (legendGroupSize / 2);
  
              if (emptySpace > 0) {
                  svg.select('g.legend-container-group')
                      .attr('transform', `translate(${newXPosition},0)`)
              }
          }
docs: Centers the legend on the chart given that is a stack of labels
  @return {void}
  @private