added support for chart.js like popup-view