graph data structure changed

now generate volume graph returns an object which consists of 2 arrays