html5 pie slice color change in 6.2.1

I am creating a html 5 pie chart and changing the color using the below bucket expression. 

F{field1}=="Management"?"#4572A7":$F{field1}=="Maintenance"?"#7cb5ec":$F{field1}=="User Support"?"#8085e9":$F{field1}=="Vision/APR"?"#800000":$F{field1}=="IT Support"?"#008040":$F{field1}=="Project"?"#f7a35c":"#e4d354"

but it is applying the last color option to all slices "#e4d354". 

Please suggest any other approaches. can I use arraylist approach , if yes can you pls share an example?

shammytaj's picture
Joined: Oct 11 2017 - 10:34am
Last seen: 5 years 2 months ago

0 Answers:

No answers yet