Is it possible to extract tooltips with phantomjs?

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))';
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);
}
});

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 :smile:


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