# How to make embeded visualizations uneditable

**URL:** <https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998>\
**Category:** Kibana\
**Created:** [July 13, 2018, 6:42pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998 "2018-07-13T18:42:57Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![RajiReddy](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Post date:** [July 13, 2018, 6:42pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/1 "2018-07-13T18:42:57Z")

</div>

Hi,  
I have embed my visualization iframe into web page. But it is allowing users to edit it which in turn giving error as I am using scripted field. Is there any way to disable the interactivity with the visualization?

Thanks,  
Raji.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 17, 2018, 6:16pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/2 "2018-07-17T18:16:10Z")

</div>

Hi Raji, I just want to confirm something first. Are you using the iframe link provided under the "Share" menu? If so, then can you tell me how users are interacting with it to edit it? For example, is it a pie chart and they're clicking on slices to add filters? Which version of Kibana are you using?

Screenshots would also be helpful.

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![RajiReddy](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Post date:** [July 17, 2018, 8:18pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/3 "2018-07-17T20:18:00Z")

</div>

I am using Kibana 5.3.2 and yes, I am using the iframe link under share menu.  
When I am using Iframe link to embed my bar chart on the web page I am able to interact with it by clicking on the bars and I don't want this to happen. Also I could see filters on the embedded bar chart as shown in the screenshot, is there any way around it to make it invisible?

 ![ScreenshotFilters](https://us1.discourse-cdn.com/elastic/original/3X/2/a/2a3fe2441b89f8222f4d604aec1fdb7588b978c7.PNG)

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 18, 2018, 1:08pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/4 "2018-07-18T13:08:39Z")

</div>

Ah, I see. Sorry unfortunately there's no way to remove that filter bar from embedded visualizations. Please feel free to [open a feature request on our GitHub repo](https://github.com/elastic/kibana/issues).

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![RajiReddy](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Post date:** [July 18, 2018, 4:27pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/5 "2018-07-18T16:27:10Z")

</div>

Thanks for your response. I have another question.  
Is it possible to make visualization from different indices?  
I have different indices with similar data so I want to make a visualization using it. For example I am using care\_search index to create visualization, can I use regex to create visualization from two different indices (say care\_search and bst\_search)?

Thanks,  
Raji.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 19, 2018, 5:39pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/6 "2018-07-19T17:39:49Z")

</div>

Hi Raji, you would need create an [index pattern](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html) which contains a wildcard that can match all of your indices, and then create your visualization using this index pattern. For example, an index pattern of `*_search` should match your `care_search` and `bst_search` indices.

CJ

---

<div class="post-metadata">

**Author:** ![RajiReddy](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Post date:** [July 19, 2018, 9:22pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/7 "2018-07-19T21:22:37Z")

</div>

What if I have care\_search, bst\_search and xyz\_search but I only want to search care\_search and bst search.

My URL to create visualization for care\_search:  
[https://nlxesdev01.corp.cvscaremark.com:5601/app/kibana#/visualize/create?type=histogram&indexPattern=care\_search&\_g=()&\_a=(filters:!(('$$hashKey':'object:123','$state':(store:appState),meta:(alias:!n,disabled:!f,index:carefirst\_search,key:auth.benefitTypeCode,negate:!f,value:Medical),query:(match:(auth.benefitTypeCode:(query:Medical,type:phrase)](https://nlxesdev01.corp.cvscaremark.com:5601/app/kibana#/visualize/create?type=histogram&indexPattern=care_search&_g=()&_a=(filters:!(('%24%24hashKey':'object:123','%24state':(store:appState),meta:(alias:!n,disabled:!f,index:carefirst_search,key:auth.benefitTypeCode,negate:!f,value:Medical),query:(match:(auth.benefitTypeCode:(query:Medical,type:phrase))))),('$$hashKey':'object:13130','$state':(store:appState),meta:(alias:!n,disabled:!f,index:carefirst\_search,key:query,negate:!f,value:'%7B%22range%22:%7B%22auth.receivedDate%22:%7B%22format%22:%22MM%2Fdd%2Fyyyy%22,%22gte%22:%221%2F1%2F2017%22,%22lte%22:%2207%2F18%2F2018%22%7D%7D%7D'),query:(range:(auth.receivedDate:(format:MM%2Fdd%2Fyyyy,gte:'1%2F1%2F2017',lte:'07%2F18%2F2018'))))),linked:!f,query:(query\_string:(analyze\_wildcard:!t,query:'\*')),uiState:(vis:(legendOpen:!f)),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(customInterval:'2h',extended\_bounds:(),field:auth.receivedDate,interval:M,min\_doc\_count:1),schema:segment,type:date\_histogram)),listeners:(),params:(addLegend:!t,addTimeMarker:!f,addTooltip:!t,defaultYExtents:!f,legendPosition:right,mode:stacked,scale:linear,setYExtents:!f,times:!()),title:'New%20Visualization',type:histogram))

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 23, 2018, 2:39pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/8 "2018-07-23T14:39:43Z")

</div>

Hi Raji, index patterns only support wildcards and regular strings as matching mechanisms, so I think your best option is to duplicate the indices you want to match against and name them in such a way as to leverage these tools. For example, `care_search` could be duplicated as `care_search_vis` and `bst_search` could be duplicated as `bst_search_vis` and you could match these with a `*_vis` index pattern.

---

<div class="post-metadata">

**Author:** ![RajiReddy](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Post date:** [July 23, 2018, 9:13pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/9 "2018-07-23T21:13:13Z")

</div>

Thank you for the response.

Can I know if there is any way I can get the no.of hits from the graph Link.

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 23, 2018, 10:59pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/10 "2018-07-23T22:59:51Z")

</div>

I'm not very familiar with Graph but based on the [getting started docs](https://www.elastic.co/guide/en/kibana/current/graph-getting-started.html), it doesn't look like it provides that information.

---

<div class="post-metadata">

**Author:** ![RajiReddy](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@RajiReddy](https://discuss.elastic.co/u/RajiReddy)\
**Post date:** [July 24, 2018, 11:18pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/11 "2018-07-24T23:18:43Z")

</div>

Sorry my bad it is actually a vertical bar chart.

---

<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:** [August 21, 2018, 11:18pm UTC](https://discuss.elastic.co/t/how-to-make-embeded-visualizations-uneditable/139998/12 "2018-08-21T23:18:47Z")

</div>

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