complete graphing functionality