Chartnew js

add features from FVANCOP/ChartNew.js