-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens][Heatmap] Add ability to rotate X axis label #202143
Conversation
d0516b4
to
7b2c02d
Compare
d3ca7e4
to
387ea25
Compare
...ns/shared/lens/public/shared_components/axis/orientation/axis_label_orientation_selector.tsx
Show resolved
Hide resolved
...ns/shared/lens/public/shared_components/axis/orientation/axis_label_orientation_selector.tsx
Show resolved
Hide resolved
🚀 Enhancement In this PR we are adding the ability to rote X-axis labels in heatmap. We should also add this feature for the Y-axis. We decided to add this new feature in a separate PR. Created #206036 |
Ideally, we should add a functional test to test this new feature. However, now is not possible to check it from the heatmap debugState as the rotation properties are not available. We have decided to add the rotation properties in the debug state and then add the funcional test. Created elastic/elastic-charts#2578 #206053 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such a great improvement! Tested and approved!
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
x-pack/platform/plugins/shared/lens/public/visualizations/heatmap/toolbar_component.tsx
Show resolved
Hide resolved
...gins/shared/chart_expressions/expression_heatmap/common/expression_functions/heatmap_grid.ts
Outdated
Show resolved
Hide resolved
...ns/shared/lens/public/shared_components/axis/orientation/axis_label_orientation_selector.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works perfectly! Could not find any issue
Starting backport for target branches: 8.x |
## Summary Closes elastic#61248 Adds the ability to rotate the X-axis labels in the heatmap chart. <img width="2560" alt="Screenshot 2025-01-08 at 16 50 20" src="https://github.com/user-attachments/assets/0847dd6d-747d-4a4d-bc7e-4da6c903d394" /> #### Screen recording https://github.com/user-attachments/assets/f4834722-b296-4239-a9d4-25c5fd8c738b ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com> (cherry picked from commit 2f6b9f6)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…206957) # Backport This will backport the following commits from `main` to `8.x`: - [[Lens][Heatmap] Add ability to rotate X axis label (#202143)](#202143) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Maria Iriarte","email":"106958839+mariairiartef@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-01-16T14:36:37Z","message":"[Lens][Heatmap] Add ability to rotate X axis label (#202143)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/61248\r\n\r\nAdds the ability to rotate the X-axis labels in the heatmap chart.\r\n\r\n<img width=\"2560\" alt=\"Screenshot 2025-01-08 at 16 50 20\"\r\nsrc=\"https://github.com/user-attachments/assets/0847dd6d-747d-4a4d-bc7e-4da6c903d394\"\r\n/>\r\n\r\n#### Screen recording\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f4834722-b296-4239-a9d4-25c5fd8c738b\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>","sha":"2f6b9f67d8351a5688e9c3753a4a7234e466dc6a","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","Feature:Lens","v9.0.0","release_note:feature","backport:version","v8.18.0"],"title":"[Lens][Heatmap] Add ability to rotate X axis label","number":202143,"url":"https://github.com/elastic/kibana/pull/202143","mergeCommit":{"message":"[Lens][Heatmap] Add ability to rotate X axis label (#202143)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/61248\r\n\r\nAdds the ability to rotate the X-axis labels in the heatmap chart.\r\n\r\n<img width=\"2560\" alt=\"Screenshot 2025-01-08 at 16 50 20\"\r\nsrc=\"https://github.com/user-attachments/assets/0847dd6d-747d-4a4d-bc7e-4da6c903d394\"\r\n/>\r\n\r\n#### Screen recording\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f4834722-b296-4239-a9d4-25c5fd8c738b\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>","sha":"2f6b9f67d8351a5688e9c3753a4a7234e466dc6a"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202143","number":202143,"mergeCommit":{"message":"[Lens][Heatmap] Add ability to rotate X axis label (#202143)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/61248\r\n\r\nAdds the ability to rotate the X-axis labels in the heatmap chart.\r\n\r\n<img width=\"2560\" alt=\"Screenshot 2025-01-08 at 16 50 20\"\r\nsrc=\"https://github.com/user-attachments/assets/0847dd6d-747d-4a4d-bc7e-4da6c903d394\"\r\n/>\r\n\r\n#### Screen recording\r\n\r\n\r\nhttps://github.com/user-attachments/assets/f4834722-b296-4239-a9d4-25c5fd8c738b\r\n\r\n### Checklist\r\n\r\n- [x] Any text added follows [EUI's writing\r\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\r\nsentence case text and includes [i18n\r\nsupport](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios\r\n- [x] The PR description includes the appropriate Release Notes section,\r\nand the correct `release_note:*` label is applied per the\r\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\r\n\r\n---------\r\n\r\nCo-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>","sha":"2f6b9f67d8351a5688e9c3753a4a7234e466dc6a"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Maria Iriarte <106958839+mariairiartef@users.noreply.github.com>
## Summary Closes elastic#61248 Adds the ability to rotate the X-axis labels in the heatmap chart. <img width="2560" alt="Screenshot 2025-01-08 at 16 50 20" src="https://github.com/user-attachments/assets/0847dd6d-747d-4a4d-bc7e-4da6c903d394" /> #### Screen recording https://github.com/user-attachments/assets/f4834722-b296-4239-a9d4-25c5fd8c738b ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
## Summary Closes #206040 - Uses the `AxisLabelOrientationSelector` component, which was introduced in [202143](#202143), in the XY chart axis settings. - Adds `AxesSettingsConfig` and `AxesSettingsConfigKeys` declarations in `x-pack/platform/plugins/shared/lens/public/shared_components/axis/types.ts` file ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
…208002) ## Summary Closes elastic#206040 - Uses the `AxisLabelOrientationSelector` component, which was introduced in [202143](elastic#202143), in the XY chart axis settings. - Adds `AxesSettingsConfig` and `AxesSettingsConfigKeys` declarations in `x-pack/platform/plugins/shared/lens/public/shared_components/axis/types.ts` file ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com> (cherry picked from commit 2657b86)
…208002) ## Summary Closes elastic#206040 - Uses the `AxisLabelOrientationSelector` component, which was introduced in [202143](elastic#202143), in the XY chart axis settings. - Adds `AxesSettingsConfig` and `AxesSettingsConfigKeys` declarations in `x-pack/platform/plugins/shared/lens/public/shared_components/axis/types.ts` file ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: Marta Bondyra <4283304+mbondyra@users.noreply.github.com>
Summary
Closes #61248
Adds the ability to rotate the X-axis labels in the heatmap chart.
Screen recording
Screen.Recording.2025-01-08.at.16.52.05.mov
Checklist
release_note:*
label is applied per the guidelines