addCategoryBlocks {vfinputs}R Documentation

Add list of category items

Description

Add list of category items

Usage

addCategoryBlocks(orient, input_id, color_map, values)

Arguments

orient

Orientation of the legend. Can be "bottom" (default, horizontal with labels below), "top" (horizontal with labels above), "left" (vertical with labels on the left) and "right" (vertical with labels on the right).

input_id

The CSS class used to trigger interactions

color_map

A list of colors from where the corresponding item color will be retrieved

values

A list of values from which the corresponding item label will be retrieved

Value

A list of the same length as values, containing either "span" or "div" elements depending on the chosen orientation.

See Also

categoricalLegend()


[Package vfinputs version 0.1.0 Index]