Line graph as function

@KevinSchmid