Custom fixed colors for a slice in pie chart

Hi. I’d like to fix some custom colors form a pie chat, but I did find a solution. With the default colors, the slice of “completed” is red and “todo” is green, for example. I’m using jmix 2.7 with the chart add-on to make a pie chart like this one: https://demo.jmix.io/ui-samples/sample/pie-series-simple

I found this option, but I don’t know how to use it with jmix. Documentation - Apache ECharts

image

Hi!

This property can’t be used because supplying data via the data attribute is not supported in the Jmix concept. But you can use the color property to change the colors on the chart. In XML this attribute is called colorPalette.

Best regards,
Dmitriy