Move line graph to subclass.