new Cirrus()
Cirrus tool, a wordcloud-like visualization.
- Tutorials:
Example
let config = {
background: null,
categories: null,
docIndex: null,
fontFamily: null,
inlineData: null,
limit: null,
stopList: null,
visible: null,
whiteList: null,
};
loadCorpus("austen").tool("cirrus", config);
Members
-
categories
-
Properties:
Name Type Description categoriesString The categories ID to use. For more information see the Categories documentation.
-
docId
-
Properties:
Name Type Description docIdString | Array.<String> The document ID(s) to restrict the results to.
-
docIndex
-
Properties:
Name Type Description docIndexNumber | Array.<Number> The document index(es) to restrict the results to.
-
fontFamily
-
Properties:
Name Type Default Description fontFamilyString "Palatino Linotype", "Book Antiqua", Palatino, serif The CSS font-family to use for the terms
-
height
-
Properties:
Name Type Description heightNumber The display height of the tool in pixels. -
inlineData
-
Properties:
Name Type Description inlineDataString Directly specify the terms and their relative sizes. There data format is a comma-separated list of colon-separated term/size pairs. For example: love:20,like:15,dear:10,child:6
-
limit
-
Properties:
Name Type Default Description limitNumber 500 Specify the number of terms to load (which is separate from the number of Cirrus.visible terms to show) at a time).
-
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. -
visible
-
Properties:
Name Type Default Description visibleNumber 50 Specify the number of terms that are visible at a time.
-
whiteList
-
Properties:
Name Type Description whiteListString | Array.<String> a list of words to always include
-
width
-
Properties:
Name Type Description widthNumber The display width of the tool in pixels.