built a basic graph viewer, clipping and etc is not complete yet