Conditional background color in line charts

前端 未结 1 444
执笔经年
执笔经年 2021-01-13 05:29

I am currently trying to convert our charts over from PQ Systems Chartrunner to SSRS 2008 charts. I am currently working with a line chart in SSRS 2008 and am trying to get

相关标签:
1条回答
  • 2021-01-13 05:55

    Yes, you need to look at using Strip Lines in your report:

    Highlight data by adding Strip Lines.

    This is a decent link, too:

    Axis Strip Lines in SSRS.

    Because you can make these expression based, the bands can be determined at run time. It should work in your case as you always have a set number of bands, just different values when you run the report.

    Here's a simple example, based off the following dataset:

    enter image description here

    Most important thing to note is that I've included the limit rows max, mid, and min in the dataset; these makes the Strip Lines easier to create.

    Create a simple chart:

    enter image description here

    Select the Y Chart Axis and expand the StripLines collection:

    enter image description here

    You can see that I've set IntervalOffset and StripWidth, based on the fields in my dataset. End result:

    enter image description here

    So you can see it's possible to do this dynamically as required. It's a simplified example but the concept is readily transferable; you should be able to adapt it to your requirements.

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