Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to adjust the height of a chart

Status
Not open for further replies.

Gus01

Programmer
Sep 4, 2009
45
FR
Hello,

Is it possible to adjust the height of a chart (horizontal bar) depending on the number of rows (groups) that will be drawn ?

(Crystal Report 10)

Thanks
Gus
 
I'm guessing that the issue is that the size of the bar is changing instead of the chart, and you would prefer to keep the bar size more consistent. If this is the case, I think one alternative is to add the chart to different sections, e.g., RF_a, RF_b, etc. and then conditionally suppress the sections based on a range of groups, e.g., one section might have a formula like this in the conditional suppression area for an RF section:

distinctcount({table.groupfield}) < 5 or
distinctcount({table.groupfield}) > 10

-LB
 
I meant that you would resize the charts to different heights in each section, by stretching the chart vertically.

-LB
 
Correct.
The height of the chart should be proportional to the number of groups to display (and the size of the bar will be almost always the same)

Thank you for your suggestion.
There is no way to change the Height property of the chart once the report is opened.
 
I'm unclear on where you are with this. I was just suggesting that you display different sections with the chart stretched to various heights, depending upon the number of groups--because I don't believe you can conditionally adjust the height of the chart directly.

-LB
 
yes thank you, I agree
I am disappointed but it is that what I understood.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top