Reporting Services Chart - Custom Axis Label

前端 未结 2 1944
情深已故
情深已故 2021-02-06 17:34

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

相关标签:
2条回答
  • 2021-02-06 18:00

    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.

    0 讨论(0)
  • 2021-02-06 18:03

    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

    0 讨论(0)
提交回复
热议问题