Class: TextByFrequencyRenderer

TextByFrequencyRenderer

A Renderer implementation that renders a histogram of the frequency of a particular topic over time, with the topic text next to it.

new TextByFrequencyRenderer(spec)

Instantiate a TextByFrequencyRenderer object.
Name Type Description
spec Object The specification object.
{
    text: {
        textKey  {String|Function} - The attribute for the text in the data entry.
        themes   {Array}  - The array of RenderThemes to be attached to this component.
    },
    frequency: {
        countKey {String|Function} - The attribute for the count in the data entry.
        themes   {Array}  - The array of RenderThemes to be attached to this component.
        invertOrder {Boolean} - The boolean to determine order of chart values.  Defaults to false if not present
    }
}

Extends

Methods

Add a hook function to the renderer.
Name Type Description
hook function the callback function.
Remove a hook function from the renderer.
Name Type Description
hook function the callback function.
Select all entries in the rendered layer that also share the same selected value. The 'selectKey' of the 'select' option must be set.
Name Type Description
selectedEntry Object The selected data entry.
Unselect all entries in the rendered layer.