Skip to content

[ES|QL viz] Filters and drill downs on xy, heatmap and partition charts: provide feedback when cannot apply filter or drill downs when the value is computed#269722

Draft
mariairiartef wants to merge 32 commits into
elastic:mainfrom
mariairiartef:lens/260185_legend-actions
Draft

Conversation

@mariairiartef
Copy link
Copy Markdown
Contributor

@mariairiartef mariairiartef commented May 18, 2026

Summary

Part of #260185

Provide feedback when cannot apply filter or drill downs when the value is computed for ES|QL xy (bar, line, area), heatmap and partition (pie, treemap, mosaic, waffle) charts.

Click on legend actions

XY (bar, line, area) and partition (pie, treemap, mosaic, waffle) charts

  • Displays the legend icon button when the user cannot filter by that value because it is computed.
  • Uses the popover that appears to inform the user with disabled actions and explanation.
Screenshot 2026-05-26 at 16 14 21

Hover on chart element

XY (bar, line, area), partition (pie, treemap, mosaic, waffle) and heatmap charts

Screenshot 2026-05-26 at 16 16 52

Test cases

Checklist

@infra-vault-gh-plugin-prod
Copy link
Copy Markdown

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!
  • Click to trigger kibana-entity-store-performance-from-pr for this PR!
  • Click to trigger kibana-storybooks-from-pr for this PR!

@mariairiartef mariairiartef self-assigned this May 18, 2026
@mariairiartef mariairiartef added Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// Feature:Lens labels May 18, 2026
@mariairiartef mariairiartef changed the title [ES|QL viz] Show filter actions in legend action when is computed [ES|QL viz] Charts: show filter actions in legend action when is computed May 19, 2026
@mariairiartef mariairiartef changed the title [ES|QL viz] Charts: show filter actions in legend action when is computed [ES|QL viz] Charts: show disabled filter actions in legend action when is computed May 19, 2026
@mariairiartef mariairiartef changed the title [ES|QL viz] Charts: show disabled filter actions in legend action when is computed [ES|QL viz] Charts: show disabled filter actions in **legend action** when is computed May 21, 2026
@mariairiartef mariairiartef changed the title [ES|QL viz] Charts: show disabled filter actions in **legend action** when is computed [ES|QL viz] Charts: show disabled filter actions in legend action when is computed May 21, 2026
@mariairiartef mariairiartef changed the title [ES|QL viz] Charts: show disabled filter actions in legend action when is computed [ES|QL viz] Filters and drill downs on charts: provide feedback when cannot apply filter or drill downs when the value is computed May 25, 2026
@mariairiartef mariairiartef force-pushed the lens/260185_legend-actions branch from 13a7a63 to e49144e Compare May 25, 2026 12:47
@mariairiartef mariairiartef force-pushed the lens/260185_legend-actions branch from e49144e to df2ec9b Compare May 25, 2026 14:19
@mariairiartef mariairiartef changed the title [ES|QL viz] Filters and drill downs on charts: provide feedback when cannot apply filter or drill downs when the value is computed [ES|QL viz] Filters and drill downs on xy, heatmap and partition charts: provide feedback when cannot apply filter or drill downs when the value is computed May 26, 2026
@mariairiartef mariairiartef added release_note:enhancement backport:skip This PR does not require backporting labels May 26, 2026
@mariairiartef
Copy link
Copy Markdown
Contributor Author

/ci

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

@mariairiartef, this PR increases one or more page-load bundle sizes by 15% or more:

Plugin Before (bytes) After (bytes) Change
expressionHeatmap 17,563 20,303 +15.6%

Large bundle size increases can affect page load performance. Consider whether dependencies can be lazy-loaded or code split to reduce the bundle.

See the bundle optimization guide for tips.

@mariairiartef
Copy link
Copy Markdown
Contributor Author

/ci

@kibanamachine
Copy link
Copy Markdown
Contributor

kibanamachine commented May 29, 2026

💔 Build Failed

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
agentBuilder 1963 1964 +1
agentBuilderDashboards 597 598 +1
cases 2071 2072 +1
dashboard 1093 1094 +1
discover 2107 2108 +1
exploratoryView 267 268 +1
expressionGauge 195 196 +1
expressionHeatmap 199 201 +2
expressionLegacyMetricVis 152 153 +1
expressionMetricVis 153 154 +1
expressionPartitionVis 226 228 +2
expressionTagcloud 188 189 +1
expressionXY 267 270 +3
infra 1913 1914 +1
lens 1811 1812 +1
observability 1818 1819 +1
observabilityAIAssistantApp 853 854 +1
unifiedDocViewer 982 983 +1
visDefaultEditor 240 241 +1
visTypeHeatmap 148 149 +1
visTypePie 166 167 +1
visTypeXy 197 198 +1
visualizations 777 778 +1
total +27

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
agentBuilder 1.9MB 1.9MB -1.0B
cases 2.4MB 2.4MB +5.0B
expressionHeatmap 18.6KB 19.1KB +529.0B
expressionPartitionVis 38.8KB 40.3KB +1.5KB
expressionXY 101.9KB 103.4KB +1.5KB
lens 2.1MB 2.1MB +145.0B
observability 2.1MB 2.1MB +3.0B
unifiedDocViewer 685.8KB 685.8KB +2.0B
visTypeXy 41.6KB 41.6KB +1.0B
visualizations 335.2KB 335.2KB +2.0B
total +3.7KB

Count of Enzyme imports

Enzyme is no longer supported, and we should switch to @testing-library/react instead.

id before after diff
expressionXY 7 6 -1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
agentBuilder 54.6KB 54.6KB -4.0B
expressionHeatmap 16.9KB 18.1KB +1.1KB
expressionPartitionVis 27.3KB 28.5KB +1.1KB
expressionXY 41.7KB 42.8KB +1.1KB
observability 102.1KB 102.1KB +1.0B
unifiedDocViewer 14.7KB 14.7KB +1.0B
visTypeXy 29.2KB 29.2KB +2.0B
visualizations 46.3KB 46.3KB +2.0B
total +3.3KB

History

cc @mariairiartef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Lens release_note:enhancement Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants