Type: Legend | undefined
图例配置, 用于定义图表的图例, 包括图例的位置, 格式, 样式等.
Type: boolean | undefined
图例功能是否开启
示例 enable: true
Type: boolean | undefined
图例边框是否开启
示例 border: true
仅离散图例生效
Type: string | undefined
图例字体颜色
Type: number | undefined
图例字体大小
示例 labelFontSize: 10
Type: string | undefined
图例字体颜色
Type: string | number | undefined
图例字体粗细
示例 labelFontWeight: 400
Type: "circle" | "cross" | "diamond" | "square" | "arrow" | "arrow2Left" | "arrow2Right" | "wedge" | "thinTriangle" | "triangle" | "triangleUp" | "triangleDown" | "triangleRight" | "triangleLeft" | "stroke" | "star" | "wye" | "rect" | "arrowLeft" | "arrowRight" | "rectRound" | "roundLine" | undefined
图例形状
示例 shapeType: 'circle'
仅离散图例生效
Type: "left" | "leftTop" | "leftBottom" | "lt" | "lb" | "top" | "topLeft" | "topRight" | "tl" | "tr" | "right" | "rightTop" | "rightBottom" | "rt" | "rb" | "bottom" | "bottomLeft" | "bottomRight" | "bl" | "br" | undefined
图例位置
示例 position: 'rightTop'
Type: number | undefined
存在大量图例时, 最大列数 或 图例最大行数
如果position为水平方向(bottom, bottomLeft, bottomRight, bl, br, top, topLeft, topRight, tl, tr), maxSize控制显示的列数
如果position为垂直方向(left, leftTop, leftBottom, lt, lb, right, rightTop, rightBottom, rt, rb), maxSize控制显示的行数
示例 maxSize: 2
仅离散图例生效