function rotate(text) {
        text.attr("transform", function (d, i) {
          var rotateAnchor = that._rotateAnchor(d, i);

          return "translate(".concat(d.x, ", ").concat(d.y, ") rotate(").concat(d.r, ", ").concat(rotateAnchor[0], ", ").concat(rotateAnchor[1], ")");
        });
      }
/**
       * Applies translate and rotate to a text element.
       * @param {D3Selection} text
       * @private
       */
Applies translate and rotate to a text element.
@param {D3Selection} text
@private
Applies translate and rotate to a text element . @param { D3Selection } text @private
function rotate(text) {
        text.attr("transform", function (d, i) {
          var rotateAnchor = that._rotateAnchor(d, i);
          return "translate(".concat(d.x, ", ").concat(d.y, ") rotate(").concat(d.r, ", ").concat(rotateAnchor[0], ", ").concat(rotateAnchor[1], ")");
        });
      }
function rotate ( text ) { text . attr ( "transform" , function ( d , i ) { var rotateAnchor = that . _rotateAnchor ( d , i ) ; return "translate(" . concat ( d . x , ", " ) . concat ( d . y , ") rotate(" ) . concat ( d . r , ", " ) . concat ( rotateAnchor [ 0 ] , ", " ) . concat ( rotateAnchor [ 1 ] , ")" ) ; } ) ; }
Applies translate and rotate to a text element.
Applies translate and rotate to a text element .