new TermsRadio()
TermsRadio is a visualization that depicts the change of the frequency of words in a corpus (or within a single document).
- 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 binsNumber 5 The number of "bins" to divide the result into.
-
height
-
Properties:
Name Type Description heightNumber The display height of the tool in pixels. -
limit
-
Properties:
Name Type Default Description limitNumber 50 The number of items to limit the result to.
-
query
-
Properties:
Name Type Description queryString | 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 sliderBoolean true Whether to show the slider.
-
speed
-
Properties:
Name Type Default Description speedNumber 50 How fast to animate the visualization.
-
stopList
-
Properties:
Name Type Default Description stopListString 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.
-
style
-
Properties:
Name Type Description styleString A string of CSS properties to use as the style attribute for the tool's parent tag. -
visibleBins
-
Properties:
Name Type Default Description visibleBinsNumber 5 How many segments or documents to show at once (default is 5). Note that this often works in parallel with the #bins value.
-
width
-
Properties:
Name Type Description widthNumber The display width of the tool in pixels. -
yAxisScale
-
Properties:
Name Type Default Description yAxisScaleString log The scale for the y axis. Options are: 'log' or 'linear'.