src/charts/legend.js
function buildContainerGroups() {
            let container = svg
              .append('g')
                .classed('legend-container-group', true)
                .attr('transform', `translate(${margin.left},${margin.top})`);

            container
              .append('g')
                .classed('legend-group', true);
        }
function buildContainerGroups() {
            let container = svg
              .append('g')
                .classed('legend-container-group', true)
                .attr('transform', `translate(${margin.left},${margin.top})`);

            container
              .append('g')
                .classed('legend-group', true);
        }
function buildContainerGroups ( ) { let container = svg . append ( 'g' ) . classed ( 'legend-container-group' , true ) . attr ( 'transform' , ` ${ margin . left } ${ margin . top } ` ) ; container . append ( 'g' ) . classed ( 'legend-group' , true ) ; }
Builds containers for the legend
Also applies the Margin convention
@private
Builds containers for the legend Also applies the Margin convention