HI, I have placed a graphic inside my report in SQL Server Reporting Services 2008. My only problem is that the natural behavior of the graphic is to have fixed width and heights, no matter how many items you have inside your graphic. Sometimes I have as few as 5 to 8 items in my Y axis, but sometimes I have some 20 or 25. What happens is that because of the fixed height, the graphics with few items have too much vertical space and large bars and the ones with many items are automatically compressed into a space that is small for them. So what I need is to dinamically set the height of the graphic based on how many items are in the Y axis of the graphic. The X axis does not expand, so I don`t need to set it dynamically. How would you set the height of the graphic dynamically? I probably have to set a function for the graphic height… Any help will be appreciated. Thanks.
Share
Assuming you mean chart, then the function for chart height would look something like this:
I have done this from memory so it may not be exactly correct.