简体   繁体   English

SSRS 2008:确定图表中条形宽度的表达式?

[英]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: 然后使用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. 颜色由WaitTimeGroupNotify值确定。

I've tried setting an expression in the PixelPointWidth CustomAttribute property though this displayed all bars with the same width. 我试过在PixelPointWidth CustomAttribute属性中设置一个表达式,尽管这会以相同的宽度显示所有条形。

Is this possible using SSRS 2008 or perhaps someway it can be achieved by modifying my dataset? 使用SSRS 2008可以做到这一点,还是可以通过修改我的数据集来实现?

Try to set the width ( CustomAttributes -> PointWidth ) dynamically using expression, something similar to the following : 尝试使用表达式动态设置宽度( CustomAttributes -> PointWidth ),类似于以下内容:

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

... you need to experiment to reach for the desired PointWidth value. ...您需要尝试达到所需的PointWidth值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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