Quantcast
Viewing all articles
Browse latest Browse all 10045

How to set color of pie slice though some expression or code?

 Hi,

I'm using 3D pie chart to show the following data which I'm retrieving from the query.

StatusColor

Value

Green

10

Yellow

50

Red

37

Gray

3


Please note that status colors are fixed i.e. there will be only four colors but their values can change.

Sinces, status colors are fixed so there would be only four slices per pie chart.

I want to show a 3D pie chart in such a way that the slice which would the value of 10 (from the dataset) should be in green color (as shown in table above). Similarly, pie slice having the value of 50 should be in yellow color.

Currently, pie chart is showing default colors i.e. pie slice having the value of 10 is appearing in blue color. I want to change the slices' color through some expression or code.

Any help would be highly appreciated!

Thanks.
NomanRasheed

Viewing all articles
Browse latest Browse all 10045

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>