working on chart in three.js