How to embed visualization into my app

Since the embedVisualizationWithId was removed from the Kibana, I have no way to embed visualization into my Kibana app.

Does anybody know what I should use instead?

You can embed a dashboard in full screen mode. You can put your visualization in Canvas an embed that. And if you're willing to do more work, you can also:

  • Use the elastic-charts library to develop your own visualization
  • Build a Kibana plugin that creates an embeddable URL

Embedding Kibana typically means using an iframe, but you can query Elasticsearch and visualize the results in many ways.

I do not embed visualization into external web application.
I created application inside the kibana and include visualizations there.
Until version 7.4 it was possible with the visualizationloader, later it was removed or replaced.

I see, so we are using a new mechanism called the Embeddable service. Here are the docs: Embeddables plugin | Kibana Guide [7.12] | Elastic