attempt to improve line_graph example