See the documentation here: https://docs.mendix.com/refguide/charts-advanced-cheat-sheet
See the 2.1 Legend part.
Regards,
Ronald
This issue was related to the theme resource, which I was using.
There was !important mark in _charts.scss file in my project theme folder, which was overriding at runtime.
Solved by: