add dashstyle to legend