managed to implement crappy graph viewer with loads of junk code and a wrong interface orientation