# How can I share Xpack Graph in an iframe with filter

**URL:** <https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652>\
**Category:** Kibana\
**Created:** [March 3, 2019, 8:59pm UTC](https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652 "2019-03-03T20:59:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulkothanath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulkothanath/32/99122_2.png) [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Post date:** [March 3, 2019, 8:59pm UTC](https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652/1 "2019-03-03T20:59:25Z")

</div>

Hi,  
I want to show my kibana xpack graph in an external website like we do for kibana dashboard using an iframe.  
I know there is a unique url for saved graph but I want it in an iframe with some filtering options.

 ![es-graph](https://us1.discourse-cdn.com/elastic/original/3X/1/2/128a7da17643bfa3c55b4d20e9ebcb7462096588.png)

is it possible ? I am using kibana 6.3.1

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [March 5, 2019, 5:05pm UTC](https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652/2 "2019-03-05T17:05:15Z")

</div>

There is no `share` button on graph to auto-generate the `iframe` code snippet but I believe you can hack one together. Just grab the URL for graph and append the URL query parameter `embed=true` to hide Kibana's chrome in the iframe. Your iframe should look something like this

```auto
<iframe 
  src="http://localhost:5603/zij/app/graph#/workspace/54212dc0-3f68-11e9-8dc4-f58622b66360?embed=true&_g=()" 
  height="600" 
  width="800">
</iframe>

```

---

<div class="post-metadata">

**Author:** ![rahulkothanath](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahulkothanath/32/99122_2.png) [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Post date:** [March 5, 2019, 9:23pm UTC](https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652/3 "2019-03-05T21:23:47Z")

</div>

I did tried that but it is showing the kibana side bar on the left.

 ![Graph-iframe](https://us1.discourse-cdn.com/elastic/original/3X/1/7/17cd6c2039d04379e95fd7fcbd8fb1f2ab8f98d8.png)

I am also looking to pass a query(eg: query:(match:(CRD\_NO:(query:'3619020079264847',type:phrase))) to the grah url. can I do that?

I want to pass a CRD\_NO each time iframe is invoked and want graph to change as per parameter CRD\_NO.

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [March 5, 2019, 10:17pm UTC](https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652/4 "2019-03-05T22:17:51Z")

</div>

I don't think there is a way to hide the left nav bar. You could create an enhancement request at [https://github.com/elastic/kibana/issues/new?template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?template=Feature_request.md).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 2, 2019, 10:23pm UTC](https://discuss.elastic.co/t/how-can-i-share-xpack-graph-in-an-iframe-with-filter/170652/5 "2019-04-02T22:23:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
