Modifies linechart - now functioning