fixed legend and color bugs for lined graph