Different color indication in chart and legend

0
Hi,   I have a pie chart in an application. This shows different color indications in chart and in legend. For example, please see the screenshot attached. The legend should indicate Orange and green but this shows some random color indications. Can anybody help me here?  
asked
2 answers
0

See the documentation here: https://docs.mendix.com/refguide/charts-advanced-cheat-sheet

See the 2.1 Legend part.

Regards,

Ronald

 

answered
0

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:

  1. Located which class responsible for legends coloring in _chart.scss in theme directory under correspondig theme.
  2. removed ‘!important’ from the affected class.
answered