简体   繁体   English

如何在SRS中使条形变为多色

[英]how to make a bar multicolor in ssrs

在此处输入图片说明

In this chart i want that 0 to 20 should be green 20 to 40 should be yellow and above 40 should be red , for example if we talk about divisioname D then its bar should contain all the three colors from 0 to 20 it should be green from 20 to 40 yellow and after 40 it should be of red color, I have not been able to achieve this please help 在此图表中,我希望0到20应该是绿色,而20到40应该是黄色,高于40的应该是红色,例如,如果我们谈论除法D,则它的色条应包含从0到20的所有三种颜色,应该是绿色从20到40黄色,到40后应该是红色,我还没能做到这一点,请帮忙

Current dataset looks like this 当前数据集如下所示 在此处输入图片说明

This is by no means a ciomplete answer, it's just to point you in the right direction and I can't fit it all in a comment.... 这绝不是一个简单的答案,仅是为您指明正确的方向,而我无法在评论中全部列出...。

If you want a single bar showing different colours, you will have to change your query considerably. 如果要显示不同颜色的单个条,则必须对查询进行很大的更改。 You basically need to create a horizontal stacked chart. 基本上,您需要创建一个水平堆积图。 You'll 3 series, one for each colour and the dataset will have to return values for each. 您将获得3个系列,每种颜色一个,数据集将必须为每种颜色返回值。

For example, your Divisionname D row would now become 3 rows 例如,您的部门名称D行现在将变为3行

Category       Value Series
Divisionname D 20    'Green'
Divisionname D 40    'Yellow'
Divisionname D 39    'Red.

You can format each series to match the series colour and once stacked, they will add up to 79 as in your image. 您可以设置每个系列的格式以匹配系列颜色,并且一旦堆叠起来,它们的总和将达到图像中的79。

Hope this help you get started. 希望这对您有所帮助。

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

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