Tools.TermsRadio()

new TermsRadio()

TermsRadio is a visualization that depicts the change of the frequency of words in a corpus (or within a single document).

Author:
  • Mark Turcato
  • Andrew MacDonald
Tutorials:
Example
let config = {
   "bins": 5,
   "limit": null,
   "query": null,
   "slider": null,
   "speed": null,
   "stopList": null,
   "visibleBins": null,
   "yAxisScale": null
  };

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

Members

bins

Properties:
Name Type Default Description
bins Number 5

The number of "bins" to divide the result into.

limit

Properties:
Name Type Default Description
limit Number 50

The number of items to limit the result to.

query

Properties:
Name Type Description
query String | Array.<String>

A query or array of queries (queries can be separated by a comma). For query syntax, see the search documentation.

slider

Properties:
Name Type Default Description
slider Boolean true

Whether to show the slider.

speed

Properties:
Name Type Default Description
speed Number 50

How fast to animate 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.

visibleBins

Properties:
Name Type Default Description
visibleBins Number 5

How many segments or documents to show at once (default is 5). Note that this often works in parallel with the #bins value.

yAxisScale

Properties:
Name Type Default Description
yAxisScale String log

The scale for the y axis. Options are: 'log' or 'linear'.