diff --git a/en/option/partial/axisPointer-common.md b/en/option/partial/axisPointer-common.md index 9e1c3070..cc661e5b 100644 --- a/en/option/partial/axisPointer-common.md +++ b/en/option/partial/axisPointer-common.md @@ -106,6 +106,14 @@ Options: Whether to trigger tooltip. +#${prefix} triggerOnNull(boolean) = false + + + +Whether to trigger the axisPointer on `null` or `undefined` values. This is useful when used with the `echarts.connect()` API to trigger the axisPointer on connected charts if the value on those charts is `null`, `undefined`, or nonexistent. + +The `snap` attribute takes precedence over this. + #${prefix} value(number) = null current value. When using [axisPointer.handle](xAxisPointer.handle), `value` can be set to define the initial position of axisPointer. diff --git a/zh/option/partial/axisPointer-common.md b/zh/option/partial/axisPointer-common.md index 8092e91a..a92f970c 100644 --- a/zh/option/partial/axisPointer-common.md +++ b/zh/option/partial/axisPointer-common.md @@ -101,6 +101,14 @@ axisPointer 的 label 默认不显示(也就是默认只显示指示线), 是否触发 tooltip。如果不想触发 tooltip 可以关掉。 +#${prefix} triggerOnNull(boolean) = false + + + +是否在`'null'`或`'undefined'`值上触发 axisPointer。如果这些图表上的值为`'null'`、`'undefined'`或不存在,这在与`'echarts.connect()'`API 一起使用以触发连接图表上的 axisPointer 时非常有用。 + +`snap` 属性优先于此。 + #${prefix} value(number) = null 当前的 value。在使用 [axisPointer.handle](xAxisPointer.handle) 时,可以设置此值进行初始值设定,从而决定 axisPointer 的初始位置。