new version of Chart creation