add line-graph functionality