Change slice color of Pie Chart

0
I am using Pie chart. I want to change slice color, there are two slices.  Below is the pie chart properties. Please let me know how can i change slice color each slice should be in different color.    
asked
1 answers
1

Hi Sidheshwari,

 

Thats indeed possible, using the Slice color option: just define an expression, using attributes to set the color of the slice. For example like this:

 

if $currentObject/Payment = Enum_Payment.Year

then '#38bdf8'

else

if $currentObject/Payment = Enum_Payment.Month

then '#0284c7'

else

'#e0f2fe'

 

PieChart.jpg

 

Hope this will help.

 

Best regards,

Bob

answered