# Is it possible to extract tooltips with phantomjs?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-extract-tooltips-with-phantomjs/32827>\
**Category:** Kibana\
**Created:** [October 23, 2015, 8:34am UTC](https://discuss.elastic.co/t/is-it-possible-to-extract-tooltips-with-phantomjs/32827 "2015-10-23T08:34:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robozu](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@robozu](https://discuss.elastic.co/u/robozu)\
**Post date:** [October 23, 2015, 8:34am UTC](https://discuss.elastic.co/t/is-it-possible-to-extract-tooltips-with-phantomjs/32827/1 "2015-10-23T08:34:02Z")

</div>

Hi,

I want to create reports of my Kibana dashboards. I know that this is not yet possible with Kibana. So I'm trying my luck with phantomjs. Unfortunately you can't see the values of each bar or pie charts. They are only visible in the tooltip. Is it possible to save these tooltips with phantomjs?  
here is what I have so far:  
var url = '[http://user:password@kibana/#/dashboard/mydashboard?embed&\_g=(refreshInterval:(display:Off,section:0,value:0),time:(from:now-30d,mode:quick,to:now)](http://user:password@kibana/#/dashboard/mydashboard?embed&_g=(refreshInterval:(display:Off,section:0,value:0),time:(from:now-30d,mode:quick,to:now)))';  
var page = require('webpage').create();  
//wait to load kibana in ms  
var waitTime = 10 \* 1000;  
//width of rendered page in pixels  
page.viewportSize = { width: 1800, height: 2000 };  
page.open(url, function (status) {  
if (status !== 'success') {  
console.log('Unable to load the address!');  
phantom.exit();  
} else {  
window.setTimeout(function () {  
page.render('kibana.jpg')  
//html output to console  
console.log(page.content);  
phantom.exit();  
}, waitTime);  
}  
});

---

<div class="post-metadata">

**Author:** ![tbragin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbragin/32/45166_2.png) [@tbragin](https://discuss.elastic.co/u/tbragin)\
**Post date:** [November 5, 2015, 6:31am UTC](https://discuss.elastic.co/t/is-it-possible-to-extract-tooltips-with-phantomjs/32827/2 "2015-11-05T06:31:46Z")

</div>

Did you ever figure this out?

An alternative would be to submit a PR for an enhancement that places these labels in legends or on charts 😄

> <https://github.com/elastic/kibana/issues/4599>

  

> <https://github.com/elastic/kibana/issues/3686>

---

<div class="post-metadata">

**Author:** ![robozu](https://avatars.discourse-cdn.com/v4/letter/r/4af34b/32.png) [@robozu](https://discuss.elastic.co/u/robozu)\
**Post date:** [November 20, 2015, 1:54pm UTC](https://discuss.elastic.co/t/is-it-possible-to-extract-tooltips-with-phantomjs/32827/3 "2015-11-20T13:54:34Z")

</div>

I still have not found a easy solution. I asked in the phantomjs google group as well and they told me that this would be very difficult. So this is beyond my capabilities. For now I just live with the genrated jpg files.  
[https://groups.google.com/forum/#!topic/phantomjs/yQEIduvuM4w](https://groups.google.com/forum/#!topic/phantomjs/yQEIduvuM4w)

---

<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, 2:08pm UTC](https://discuss.elastic.co/t/is-it-possible-to-extract-tooltips-with-phantomjs/32827/4 "2017-07-06T14:08:40Z")

</div>

Closed on July 6, 2017, 2:08pm UTC


