Using color codes in list component in ireport des

2019-09-19 16:08发布

This question already has an answer here:

I want to display a list of items ordered by their sales amount. I want to use some color code for displaying high, medium and low with actual values. i.e. each item in list will contain the no, item name, color code(in a square) and sales amount. Is this possible in iReport designer? Also I want to apply a vertical scroll bar to my list. How both this can be achieved in iReport designer. Thank you.

1条回答
Lonely孤独者°
2楼-- · 2019-09-19 16:48

what I understand from above your question, I think you need to display different color based on high, medium, etc. with sales amount.

By applying Conditional Styles, you can able to get your requirement

Formatting field data color based on condition

For example, if salesamount is between X and Y, you can apply a specific style using the color you want.

conditional style reference

Hope this helps you.

查看更多
登录 后发表回答