pyecharts全局配置项中LegendOpts图例配置项
一、定义了所有主题的全局变量
class LegendOpts(BasicOpts):
def __init__(
self,
type_: Optional[str] = None,
selected_mode: Union[str, bool, None] = None,
is_show: bool = True,
pos_left: Union[str, Numeric, None] = None,
pos_right: Union[str, Numeric, None] = None,
pos_top: Union[str, Numeric, None] = None,
pos_bottom: Union[str, Numeric, None] = None,
orient: Optional[str] = None,
align: Optional[str] = None,
padding: int = 5,
item_gap: int = 10,
item_width: int = 25,
item_height: int = 14,
inactive_color: Optional[str] = None,
textstyle_opts: Union[TextStyleOpts, dict, None] = None,
legend_icon: Optional[str] = None,
):
self.opts: dict = {
"type": type_,
"selectedMode": selected_mode,
"show": is_show,
"left": pos_left,
"right": pos_right,
"top": pos_top,
"bottom": pos_bottom,
"orient": orient,
"align": align,
"padding": padding,
"itemGap": item_gap,
"itemWidth": item_width,
"itemHeight": item_height,
"inactiveColor": inactive_color,
"textStyle": textstyle_opts,
"icon": legend_icon,
}
二、相关参数说明