Type: AnnotationArea | AnnotationArea[] | undefined
标注区域配置, 根据选择的数据, 定义图表的标注区域, 包括标注区域的位置, 样式等.
Type: Selector | Selectors | undefined
依赖选择的数据, 进行数据标记.
Type: string
维度字段, dimensions 某一项的 id
Type: "in" | "not in" | undefined
操作符
- in: 选择数据项中维度字段的值在 value 中的数据项
- not in: 选择数据项中维度字段的值不在 value 中的数据项
Type: "in" | "not in" | undefined
操作符
- in: 选择数据项中维度字段的值在 value 中的数据项
- not in: 选择数据项中维度字段的值不在 value 中的数据项
same as operator
Type: string | number | (string | number)[]
选择数据项中维度字段的值, 支持数组
Type: string | string[] | undefined
标注的文本
示例 '标注文本'
Type: "left" | "top" | "topLeft" | "topRight" | "right" | "bottom" | "bottomLeft" | "bottomRight" | undefined
文本位置
示例 'top'
Type: string | undefined
文本颜色
示例 'red'
Type: number | undefined
文本字体大小
示例 12
Type: number | undefined
文本字体重量
示例 400
Type: "left" | "right" | "center" | undefined
文本对齐方式, 一般情况下, 设置为right, 文本显示在标注区域中间, 确保显示在图表的可见区域
建议设置为'center', 这样可以确保文本在标注区域的中间
right: 文本在标注区域的左侧, 文本的右侧边缘对齐标注区域
left: 文本在标注区域的右侧, 文本的左侧边缘对齐标注区域
center: 文本在标注区域的中心, 文本的中心对齐标注区域
示例 'center' 文本在标注区域的中间
Type: "top" | "bottom" | "middle" | undefined
文本垂直对齐方式, 一般情况下, 设置为top, 文本显示在标注区域底部, 确保显示在图表的可见区域
建议设置为'top', 这样可以确保文本完整的显示在图表的可见区域
top: 文本在标注区域的底部, 文本的顶部边缘对齐标注区域
middle: 文本在标注区域的中心, 文本的中心对齐标注区域
bottom: 文本在标注区域的顶部, 文本的底部边缘对齐标注区域
示例 'top' 文本在标注区域的底部
Type: boolean | undefined
背景可见
示例 true
Type: string | undefined
背景颜色
示例 'red'
Type: string | undefined
背景边框颜色
背景边框颜色
示例 'red'
Type: number | undefined
背景边框宽度
示例 2
Type: number | undefined
背景边框圆角
背景边框圆角
示例 4
Type: number | undefined
背景内边距
示例 4
Type: string | undefined
标注区域区域颜色
示例 'red'
Type: number | undefined
标注区域区域颜色透明度
示例 0.5
Type: number | undefined
标注区域区域边框颜色
示例 'red'
Type: number | undefined
标注区域区域边框宽度
示例 2
Type: number | undefined
标注区域区域边框圆角
示例 4
Type: number | undefined
标注区域区域的边距
示例 0