Add list of category items
addCategoryBlocks(orient, input_id, color_map, values)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).
The CSS class used to trigger interactions
A list of colors from where the corresponding item color will be retrieved
A list of values from which the corresponding item label will be retrieved
A list of the same length as values, containing either "span" or "div" elements depending on the chosen orientation.