时间序列标签
TimeSeriesLabels 标签用于创建带标注的时间范围。
适用于以下数据类型:时间序列。
参数
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| name | string |
Name of the element | |
| toname | string |
Name of the timeseries to label | |
| [choice] | single | multiple |
single |
Configure whether you can select one or multiple labels |
| [maxUsages] | number |
Maximum number of times a label can be used per task | |
| [showInline] | boolean |
true |
Show labels in the same visual line |
| [opacity] | float |
0.9 |
Opacity of the range |
| [fillColor] | string |
"transparent" |
Range fill color in hexadecimal or HTML color name |
| [strokeColor] | string |
"#f48a42" |
Stroke color in hexadecimal |
| [strokeWidth] | number |
1 |
Width of the stroke |
示例
基础标注配置,用于为单通道时间序列的识别区域应用标签
<View>
<TimeSeriesLabels name="label" toName="ts">
<Label value="Run"/>
<Label value="Walk"/>
</TimeSeriesLabels>
<TimeSeries name="ts" value="$csv" valueType="url">
<Channel column="first_column"/>
</TimeSeries>
</View>