简体   繁体   中英

SSRS 2008: Expression to determine width of bar in chart?

I have a query which returns a dataset like the one below:

WaitTimeGroup   WaitTimeGroupID     WaitTimeGroupNotify    Count
upto 1h         1                   0                      0
upto 2h         2                   0                      5
upto 3h         3                   0                      15
upto 3h30m      4                   1                      3
upto 3h45m      5                   2                      2
upto 4h         6                   3                      1
upto 6h         7                   0                      9
upto 12h        8                   0                      0
over 12h        9                   0                      0

Which is then used to display the following chart using SSRS 2008:

在此处输入图片说明

What I would like to be able to do is make the non-gray bars wider, in particular the bright red one. The colors are determined by the WaitTimeGroupNotify value.

I've tried setting an expression in the PixelPointWidth CustomAttribute property though this displayed all bars with the same width.

Is this possible using SSRS 2008 or perhaps someway it can be achieved by modifying my dataset?

Try to set the width ( CustomAttributes -> PointWidth ) dynamically using expression, something similar to the following :

= IIF(CInt(Fields!WaitTimeGroupNotify.Value)=3,.2,1.98)

... you need to experiment to reach for the desired PointWidth value.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM