Making multiseries legend optional and fix the span array