Centered Data Bar

Stimulsoft Reports.NET discussion
Post Reply
oton
Posts: 8
Joined: Tue Aug 26, 2008 3:12 am
Location: Czech Republic

Centered Data Bar

Post by oton »

I use StiDataBarCondition to create data bar in StiText cell. The data band has a variable height. I would like the data bar to have fixed height (so I can't use GrowToHeight=true because it would grow) and to be centered in the center of the data band. Is there some way how to do it? Thanks.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Centered Data Bar

Post by Alex K. »

Hello,

Unfortunately, there is no standard solution for this task.
In this case, you can use the additional code in the events. For example, use two passes, in the FirstPass check the DataBand height for each row, and then in the second pass set the necessary position for the Text component with Condition.

Thank you.
Post Reply