前端折线图中背景,在折线图有条件的背景颜色

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 the background color to change for the different sigmas. I am able to calculate and chart the standard deviation sigma lines, but I have not been able to change the color of the background between the lines.

What I have so far in SSRS:

2Y3ox.jpg

In the Chartrunner chart, the Red/Yellow/Green zones:

D0HUZ.png

Is there a way to do this in SSRS 2008?

解决方案

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

This is a decent link, too:

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:

bapyd.jpg

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:

TstPf.jpg

Select the Y Chart Axis and expand the StripLines collection:

gepNf.jpg

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

TofRW.jpg

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值