reporting services - SSRS Expression: Pie chart color based on size of data -


i trying order pie chart countries order count size . country largest order count blue, second largest dark gray, third largest gray , on..

this pie chart looks like:

http://i.stack.imgur.com/dlukx.png

this code:

=switch(fields!sales_territory_country.value = "united states","lightslategray", fields!sales_territory_country.value = "france","dimgray", fields!sales_territory_country.value = "canada","lightgrey", fields!sales_territory_country.value = "germany","silver", fields!sales_territory_country.value = "united kingdom","gray", fields!sales_territory_country.value = "australia","#3c3a3a", true, "plum") 

i giving each country color , not want do. have seen many tutorials basing expressions on size (>100, <2000...) isn't i'm going either.

does know how solve this?

you can define custom color palette colors.

http://technet.microsoft.com/en-us/library/dd239355.aspx

then order categories pie chart decreasing order count size.

that should it: no need explicitly set color using switch statement.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -