@Nadhiya123, can you please provide your Simple XML Chart configuration where you have applied the above?
Do you have the values of CODE (i.e. Series Names) based on which you need to color? Or is it going to be dynamic based on sequence?
Similar questions have been answered in past, however, you would need to provide more details as to what specifically you need help with.
If you know the the CODE field values, you can color based on charting.fieldName option by providing specific field name (the following example sets color based on field values ERROR, WARN and INFO for CODE: