* Added ideal line to graph.
 * Extracted function to create line on graph.