Tools.Bubbles()

new Bubbles()

Bubbles is a playful visualization of term frequencies by document.

Tutorials:
Example
let config = {
    audio: false, // whether or not to include audio
    docIndex: 1, // document index to restrict to (can be comma-separated list)
    speed: 10, // speed of the animation (0 to 60 lower is slower)
    stopList: null, // a named stopword list or comma-separated list of words
  };

  loadCorpus("austen").tool("bubbles", config);

Members

audio

Properties:
Name Type Default Description
audio Boolean false

Whether or not to play audio

docIndex

Properties:
Name Type Description
docIndex Number | Array.<Number>

The document index(es) to restrict the results to.

limit

Properties:
Name Type Default Description
limit Number 100

The number of items to limit the result to.

speed

Properties:
Name Type Default Description
speed Number 30

How fast to play the visualization

stopList

Properties:
Name Type Default Description
stopList String auto

A comma-separated list of words, a named list or a URL to a plain text list, one word per line. By default this is set to 'auto' which auto-detects the document's language and loads an appropriate list (if available for that language). Set this to blank to not use the default stopList. For more information see the Stopwords documentation.