Hi Alexander,
Generally, you should not modify the attributes of automatically generated legend items, because in the general case they are clones of series legend attributes. Instead, you can simply create a legend
with custom items. You can check out the Panels \ Legend \ Custom Legend Items example on how to generate custom legend items.
We hope this helps - let us know if you have any questions.
Best Regards,
Nevron Support Team