score:1

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(field.top), 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: http://jsfiddle.net/kkulig/06dpcrss/

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