[improve] graph rendering (not finished yet)