gui/src/components/IndividualGroupDistribution.js
/***
     * When updating the props, according canvas needs to be updated.
     * Remove original canvas and draw a new one.
     * @param props {Object} from React.Component
     */
When updating the props, according canvas needs to be updated.
Remove original canvas and draw a new one.
@param props {Object} from React.Component
When updating the props according canvas needs to be updated . Remove original canvas and draw a new one . @param props { Object } from React . Component
updateCanvas(props) {
        const { svgID } = props;
        const svgRoot = d3.select("#" + svgID);
        svgRoot
            .append("g")
            .attr("id", svgID + "-base")
            .attr("class", "gsv");
        this.renderSvg(props);
    }
updateCanvas ( props ) { const { svgID } = props ; const svgRoot = d3 . select ( "#" + svgID ) ; svgRoot . append ( "g" ) . attr ( "id" , svgID + "-base" ) . attr ( "class" , "gsv" ) ; this . renderSvg ( props ) ; }
When updating the props, according canvas needs to be updated.
When updating the props according canvas needs to be updated .