elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.71k stars 8.13k forks source link

[Lens][ES|QL] Re-running the query should keep the selected chart type if possible #186366

Open stratoula opened 3 months ago

stratoula commented 3 months ago

Describe the feature:

Right now, every time a user submits a query in the editor, the Lens suggestions api runs and suggests a new chart. This results in changed made in the visualization level to be lost.

It would be cool if we could at least prioritize the activeVisualization chart Type. This is very easy as the suggestions api can already do it (with the preferredChartType property). The visualization state is lost though (colors, legend settings etc).

We need to:

elasticmachine commented 3 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)

elasticmachine commented 3 months ago

Pinging @elastic/kibana-esql (Team:ESQL)

stratoula commented 3 months ago

As a feature related to ES|QL and of a mid - high impact I am adding this on the ES|QL project team roadmap. Related to https://github.com/elastic/kibana/issues/184631