# Hosting a visualization plugin in an app plugin

**URL:** <https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267>\
**Category:** Kibana\
**Created:** [June 29, 2017, 10:40am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267 "2017-06-29T10:40:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [June 29, 2017, 10:40am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/1 "2017-06-29T10:40:10Z")

</div>

Hello all,  
We would like to develop an app (like timelion) and host in them visualizations, part of them plugin vis that we developed.  
How can I do this? Some recommendations?

Ariel

---

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [July 2, 2017, 7:21am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/2 "2017-07-02T07:21:08Z")

</div>

Some thoughts?

---

<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 3, 2017, 4:54pm UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/3 "2017-07-03T16:54:18Z")

</div>

Hi Ariel,

Sounds cool! Unfortunately, we don't officially support plugin development -- it's been largely community-directed so far. So just a warning that the help I can offer will be limited.

Have you taken a look at how the Timelion vis is exposed to the Visualize app? [https://github.com/elastic/kibana/blob/master/src/core\_plugins/timelion/public/vis/index.js](https://github.com/elastic/kibana/blob/master/src/core_plugins/timelion/public/vis/index.js)

Have you read through our plugin dev documentation? [https://www.elastic.co/guide/en/kibana/current/plugin-development.html](https://www.elastic.co/guide/en/kibana/current/plugin-development.html)

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [July 4, 2017, 11:10am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/4 "2017-07-04T11:10:09Z")

</div>

Thanks,  
We already developed some plugin visualizations . Now we are being requested to host this visualization in an app plugin instead of re-writing it. This is what I am looking for.

---

<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 4, 2017, 5:00pm UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/5 "2017-07-04T17:00:11Z")

</div>

I'm sorry, I'm not sure what you mean by "host in an app plugin". Do you already have a functioning Kibana visualization plugin? Can you described in more detail what you're trying to do with it?

Thanks,  
CJ

---

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [July 5, 2017, 11:20am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/6 "2017-07-05T11:20:12Z")

</div>

Hi CJ.  
Simple plugin that presents aggregations in a tree manner, using a D3 [indented tree](https://bl.ocks.org/mbostock/1093025).  
Working fine as a visualization using defined buckets and aggregations.  
Now, I have a requirement to create the same requirement but as an app (to be available in the left context menu next to Discover/Dashboards/Timelion/etc.).  
I do not want to re-write the view but reuse the visualization, similar as done in a Dashboard (exposing a Dashboard as an app can do the job, but how I do that).

Thanks, hope it is clear

---

<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 5, 2017, 10:45pm UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/7 "2017-07-05T22:45:04Z")

</div>

Hi Ariel, yes that makes things clearer for me! Thanks for explaining. You can take a look at our Timelion app as a reference for how to register an app in the sidebar _and_ register a visualization, both from the same plugin: [https://github.com/elastic/kibana/tree/master/src/core\_plugins/timelion](https://github.com/elastic/kibana/tree/master/src/core_plugins/timelion)

CJ

---

<div class="post-metadata">

**Author:** ![arieltk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@arieltk](https://discuss.elastic.co/u/arieltk)\
**Post date:** [July 6, 2017, 7:12am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/8 "2017-07-06T07:12:41Z")

</div>

Thanks CJ!  
I will look at it.

---

<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 3, 2017, 7:12am UTC](https://discuss.elastic.co/t/hosting-a-visualization-plugin-in-an-app-plugin/91267/9 "2017-08-03T07:12:46Z")

</div>

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