Refactored drawing of multiple lines for dashboard graph.