From aa5749d5252fe05c4c8b1f969d17c1df898dd85c Mon Sep 17 00:00:00 2001 From: Nick Partridge Date: Wed, 23 Oct 2024 02:44:13 -0500 Subject: [PATCH] chore: remove unused `hideLinesTooltips` prop on `LineAnnotationSpec` (#2555) --- docs/docs/api/specs/xy/line_annotation.mdx | 6 ------ packages/charts/api/charts.api.md | 1 - .../src/chart_types/xy_chart/specs/line_annotation.ts | 1 - packages/charts/src/chart_types/xy_chart/utils/specs.ts | 5 ----- 4 files changed, 13 deletions(-) diff --git a/docs/docs/api/specs/xy/line_annotation.mdx b/docs/docs/api/specs/xy/line_annotation.mdx index 1415164ae1..1c43a45655 100644 --- a/docs/docs/api/specs/xy/line_annotation.mdx +++ b/docs/docs/api/specs/xy/line_annotation.mdx @@ -76,12 +76,6 @@ The default position, if this property is not specified, falls back to the linke Annotation lines are hidden -### `hideLinesTooltips` -- Type: hideLinesTooltips?: boolean -- Default: `true` - -Hide tooltip when hovering over the line - ### `zIndex` - Type: zIndex?: number - Default: `1` diff --git a/packages/charts/api/charts.api.md b/packages/charts/api/charts.api.md index 1312f8fdf3..8f1a11ae7f 100644 --- a/packages/charts/api/charts.api.md +++ b/packages/charts/api/charts.api.md @@ -1952,7 +1952,6 @@ export type LineAnnotationSpec = BaseAnnotationSpec()( annotationType: AnnotationType.Line, hideLines: false, hideTooltips: false, - hideLinesTooltips: true, zIndex: 1, }, ); diff --git a/packages/charts/src/chart_types/xy_chart/utils/specs.ts b/packages/charts/src/chart_types/xy_chart/utils/specs.ts index 441a0f6df9..56d9e2ca2e 100644 --- a/packages/charts/src/chart_types/xy_chart/utils/specs.ts +++ b/packages/charts/src/chart_types/xy_chart/utils/specs.ts @@ -873,11 +873,6 @@ export type LineAnnotationSpec = BaseAnnotationSpec< markerPosition?: Position; /** Annotation lines are hidden */ hideLines?: boolean; - /** - * Hide tooltip when hovering over the line - * @defaultValue `true` - */ - hideLinesTooltips?: boolean; /** * z-index of the annotation relative to other elements in the chart * @defaultValue 1