# Can't insert three.js scene in Kibana 5 developing my plugin

**URL:** https://discuss.elastic.co/t/cant-insert-three-js-scene-in-kibana-5-developing-my-plugin/64318
**Category:** Kibana
**Created:** [October 28, 2016, 6:23pm UTC](https://discuss.elastic.co/t/cant-insert-three-js-scene-in-kibana-5-developing-my-plugin/64318 "2016-10-28T18:23:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![virusu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/virusu/32/14095_2.png) [@virusu](https://discuss.elastic.co/u/virusu)
#### Post date: [October 28, 2016, 6:23pm UTC](https://discuss.elastic.co/t/cant-insert-three-js-scene-in-kibana-5-developing-my-plugin/64318/1 "2016-10-28T18:23:09Z")

</div>

I am developing a 3D kibana plugin trying to insert a three.js 3D scene in Kibana and I can’t figure out how. I have been trying many different methods but the scene won’t show up. If not using Kibana, the following procedure always works:

```
    var idchart = $element.children().find(".3Dcubechart");
    idchart[0].appendChild(renderer.domElement);

```

Actually, if I do the following it does work:

var idchart = $element.children().find(".3Dcubechart");  
document.body. appendChild(renderer.domElement);

But obviously I don’t want to insert the 3D Scene directly in the body element. It shouldn’t be done that way in Kibana.

My html:

[https://github.com/virusu/v3metrics/blob/master/plugins/tr-k4p-clock/public/clock.html](https://github.com/virusu/v3metrics/blob/master/plugins/tr-k4p-clock/public/clock.html)

Do you have any ideas on what it could be failing?

For any additional information you can see my code on my github project

[https://github.com/virusu/v3metrics/blob/master/plugins/tr-k4p-clock/public/clock.js](https://github.com/virusu/v3metrics/blob/master/plugins/tr-k4p-clock/public/clock.js)

---

<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: [October 28, 2016, 10:14pm UTC](https://discuss.elastic.co/t/cant-insert-three-js-scene-in-kibana-5-developing-my-plugin/64318/2 "2016-10-28T22:14:29Z")

</div>

Hi Viorel,

I'm sorry, but right now we don't have enough resources to offer support for plugin development. Hopefully, we'll be able to help in the future.

Thanks,  
CJ

---

<div class="post-metadata">

### Author: ![virusu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/virusu/32/14095_2.png) [@virusu](https://discuss.elastic.co/u/virusu)
#### Post date: [November 9, 2016, 3:28pm UTC](https://discuss.elastic.co/t/cant-insert-three-js-scene-in-kibana-5-developing-my-plugin/64318/3 "2016-11-09T15:28:23Z")

</div>

Oh, ok. Thanks anyway cjcenizal

---

<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: [July 6, 2017, 1:34pm UTC](https://discuss.elastic.co/t/cant-insert-three-js-scene-in-kibana-5-developing-my-plugin/64318/4 "2017-07-06T13:34:15Z")

</div>


