Type: AnnotationVerticalLine | AnnotationVerticalLine[] | 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 | number | (string | number)[] | undefined
固定的x值, 用于标注垂直线, 类目轴在x方向, 则可输入维值, 数值轴在x方向, 则可输入具体的数值
Type: string | string[] | undefined
标注的文本
示例 '标注文本'
Type: "outsideStart" | "outsideEnd" | "outsideMiddle" | "insideStart" | "insideMiddle" | "insideEnd" | undefined
文本位置, 标注线的标签位置(标签相对线的相对位置)。
示例 'outsideEnd'
Type: string | undefined
文本颜色
示例 'red'
Type: number | undefined
文本字体大小
示例 12
Type: number | undefined
文本字体重量
示例 400
Type: "left" | "right" | "center" | undefined
文本对齐方式, 一般情况下, 无需设置
建议设置为'right', 这样可以确保文本在标注线的左侧
right: 文本在参考线的左侧, 文本的右侧边缘对齐(垂直)标注线
left: 文本在参考线的右侧, 文本的左侧边缘对齐(垂直)标注线
center: 文本在参考线的中心, 文本的中心对齐(垂直)标注线
示例 'right'
Type: "top" | "bottom" | "middle" | undefined
文本垂直对齐方式, 一般情况下, 无需设置
建议设置为'top', 这样可以确保文本完整的显示在图表的可见区域
top: 文本在参考线的底部, 文本的顶部边缘对齐(垂直)标注线的终点
middle: 文本在参考线的中心, 文本的中心对齐(垂直)标注线的终点
bottom: 文本在参考线的顶部, 文本的底部边缘对齐(垂直)标注线的终点
示例 'top'
Type: boolean | undefined
线可见
示例 true
Type: string | undefined
线颜色
示例 'red'
Type: number | undefined
线宽度
示例 2
Type: "solid" | "dashed" | "dotted" | undefined
线样式
示例 'solid'
Type: boolean | undefined
背景可见
示例 true
Type: string | undefined
背景颜色
示例 'red'
Type: string | undefined
背景边框颜色
示例 'red'
Type: number | undefined
背景边框宽度
示例 2
Type: number | undefined
背景边框圆角
示例 4
Type: number | undefined
背景内边距
示例 4