Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Can you set a chart series fill color to automatic via expression

$
0
0

I have a line chart which will contain a variable number of series depending on the report parameters. Currently it is using the default BrightPalette. The user may opt to include a reference series. I am trying to create an expression so that if the series is a reference series it appears in green or else the color should be automatic.

The expression looks like this: =IIf(Fields!IsReference.Value,"Green", "#00000000")

Unfortunately this does not work, the reference series is in green but the other series are not rendered on the chart. They appear in the legend but are not drawn in the chart area. If I change the expression to =IIf(Fields!IsReference.Value,"Green", "#ff000000") non reference series are rendered as black so I assume the the hex values is being parsed to an argb and since the alpha channel is 0 nothing appears. Since in other context "#00000000" means automatic can you use automatic as part of an expression or is this not allowed?

Dave

 

Viewing all articles
Browse latest Browse all 28687


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