Some history impovements (chart.js and model method)