fixed latency graph and added color names to legend