Interactive visualizations: errors using XCharts and Polychart.js libraries