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
Post a Comment