The generation of F2Native legends is determined by the graphics attributes in the graphics grammar. We will automatically generate different types of legends according to the graphics attribute mapping and the type of data: color, size, these two graphics attributes, if it is judged that the received parameters are the fields of the data source When , different legends will be automatically generated, or you can set them manually
Returns the name of the corresponding field to display the legend
config
Dictionary
Configuration Information
-config
Attribute Name
Type
Explanation
enable
Boolean
Whether to enable the legend, the default is true
position
String
The position of the legend top - top, default is horizontal bottom - bottom, default is horizontal left - left, default for vertical display right - right side, default is vertical display