cartoframes.viz.legend module

class cartoframes.viz.legend.Legend(data=None)

Bases: object

Parameters:data (dict) – The legend definition for a layer. It contains the information to show a legend “type” (color-category, color-bins, color-continuous), “prop” (color) and also text information: “title”, “description” and “footer”.

Example:

get_info(geom_type)