[8.6] [Lens] Enables the tooltip on partition charts (#146620) (#146654)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[Lens] Enables the tooltip on partition charts
(#146620)](https://github.com/elastic/kibana/pull/146620)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Stratoula
Kalafateli","email":"efstratia.kalafateli@elastic.co"},"sourceCommit":{"committedDate":"2022-11-30T06:52:10Z","message":"[Lens]
Enables the tooltip on partition charts (#146620)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/146574\r\n\r\n<img
width=\"1059\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/17003240/204623693-a2d17c66-cd86-450b-b50f-e2ced880e46f.png\">","sha":"1c076ee8fcbe2e7b85131945d6f43d844307575a","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","backport:prev-minor","v8.6.0","v8.7.0"],"number":146620,"url":"https://github.com/elastic/kibana/pull/146620","mergeCommit":{"message":"[Lens]
Enables the tooltip on partition charts (#146620)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/146574\r\n\r\n<img
width=\"1059\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/17003240/204623693-a2d17c66-cd86-450b-b50f-e2ced880e46f.png\">","sha":"1c076ee8fcbe2e7b85131945d6f43d844307575a"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/146620","number":146620,"mergeCommit":{"message":"[Lens]
Enables the tooltip on partition charts (#146620)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/146574\r\n\r\n<img
width=\"1059\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/17003240/204623693-a2d17c66-cd86-450b-b50f-e2ced880e46f.png\">","sha":"1c076ee8fcbe2e7b85131945d6f43d844307575a"}}]}]
BACKPORT-->

Co-authored-by: Stratoula Kalafateli <efstratia.kalafateli@elastic.co>
This commit is contained in:
Kibana Machine 2022-11-30 02:55:31 -05:00 committed by GitHub
parent c52136b1ab
commit b1406b8c35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ const generateCommonArguments = (
truncateLegend:
layer.truncateLegend ?? getDefaultVisualValuesForLayer(state, datasourceLayers).truncateText,
palette: generatePaletteAstArguments(paletteService, state.palette),
addTooltip: false,
addTooltip: true,
};
};