Adds lineGraph functionality