Description Usage Arguments Value See Also
Create a color legend based on given data and palette or colors. Also passes on data- attributes for optional JS interaction.
1 2 3 4 5 6 7 8 9 10 11 12 |
inputId |
The |
label |
Display label for the control, or |
class |
The CSS class of the input div element to match with any filter toggling functions. Default class is |
values |
List of character vectors that will match with the colors or palette in the order provided by both. |
data |
Alternative vector to extract values with |
colors |
Colours to match with values; must be a valid argument to
|
palette |
A function that outputs a list of colors. |
orient |
Orientation of the legend. Can be |
size |
Absolute length in pixels of the color bar; becomes width or height depending on value of |
multiple |
Is selection of multiple items allowed? Default is |
A categorical color legend control that can be added to a UI definition
discreteColorFilter()
continuousColorFilter()
categoricalColorFilter()
Other base legend:
numericLegend()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.