After the font sizes are computed word cloud sales the series group to fit it withing the plot area.

You can disable this by overwriting getScale function:

  var getScale = function getScale(targetWidth, targetHeight, field) {
    var height = Math.max(Math.abs(, Math.abs(field.bottom)) * 2,
      width = Math.max(Math.abs(field.left), Math.abs(field.right)) * 2,
      scaleX = 1 / width * targetWidth,
      scaleY = 1 / height * targetHeight;
    return Math.min(scaleX, scaleY);
    return 1;

Live demo:

Architecture of the word cloud script doesn't allow to access some of the functions after the script finishes. They need to be copied too.

Related Query

More Query from same tag