简体   繁体   中英

SSRS: Is it possible change border color based on series color in tree chart?

We work with SSRS 2016. I'm wondering is there a possibility to change a tree chart series border color according to color of series? Eg if chart series color = "Red" then border color = "Blue".

Yes, we can operate colors based on series values using switch function if the values set is limited, like:

=switch(Fields!country.Value = "Europe","#black" , Fields!country.Value = "Asia", "#blue", ........, etc. )

But if values are too many switch is not a solution.

Can you please advice whether it possible to implement expected conditional coloring?

Basically yes, but not the way you want to do it. Lets say your series color expression is the following:

=IIF(Fields!SeriesName.Value = "SeriesA", "Red", "Green")

For the border color you can not check for the color, but you can use the same expression again. Like this:

=IIF(Fields!SeriesName.Value = "SeriesA", "Blue", "Black")

This way your SeriesA color is Red and the border is Blue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM