3
votes

I have a SQL Server Reporting Services (2008) chart (error chart). The X-axis has date intervals 1/1/2009, 2/1/2009, etc. The Y-axis has numeric intervals of 50. Values on the Y-axis are 0, 50 and 100. However, instead of displaying 0, 50 and 100 i would like to display "Small","Medium" and "Large" respectively. Does anyone know how this text replacement can be performed?

2

2 Answers

12
votes

This is a bit of a hack, but here goes:

  1. First, normalize your values around zero, so the smallest value is -50 and the largest value is 50. You can do this in the chart control itself, no need to change your dataset. Your values are between 0 and 100, so just subtract 50.

  2. Next, under value axis properties -> axis options, set your minimum to -50, maximum to 50, and interval to 50.

  3. Finally, under value axis properties -> Number, select Category as "Custom" and enter this in as the custom format expression: ="Large;Small;Medium"

(that's an excel format code: pos;neg;zero)

You should get something like this:

alt text http://img44.imageshack.us/img44/9011/chartz.png

1
votes

According to Arbitrary Label for Y axis in SSRS Charts, you can achieve the similar effect by using strip line collection. See How to: Highlight Chart Data by Adding Strip Lines.