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

SSRS 2008 Chart legend colours not matching series colour.

$
0
0

Hi,

 

I believe this issue has been raised before. In SSRS 2005 & 2008 R2 though I am yet to find a solution other than a lengthy (messy) workaround.

 

I have a chart based on the following data:

Data field - Count(ChangeID)

Category - Change_Categorisation (ie. Maintenance, new hardware etc)

Series - Change_Timing (Emergency, expedited, normal etc)

 

So i am using a stacked column chart to show the category along the X axis and stack the number of changes by their timing.

In the Series colour setting i am using the expression:

=iif(Fields!Change_Timing.Value="Emergency","Red",iif(Fields!Change_Timing.Value="Expedited","Orange","SteelBlue"))

I have also tried

=Switch(Fields!Change_Timing.Value="Emergency","Red",Fields!Change_Timing.Value="Expedited","Orange",Fields!Change_Timing.Value="Normal","SteelBlue")

 

In all cases the legend only seems to refer to the first column in the chart to pick up colours.

For example.

The first column for December is Maintenance changes. There are 2 emergency & 1 normal. the only expedited change is in another column (new hardware).

So the legend shows Emergency as RED, Normal as SteelBlue and Expedited as Steelblue.

no matter what I do the legend only picks up the colours from the first category. so if the fist category only has 1 timing (eg- Normal). Every item in the legend has the Normal colour (Steelblue)

 

Surely there is a fix for this that doesnt involve creating a table to the side of the graph which seems like a really basic way to deal with this issue. I may as well go back to the dark ages and use Excel for my reports or bloody draw them on paper.

 

:) calming down now. Thanks for any input on this.


Viewing all articles
Browse latest Browse all 10045

Trending Articles



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