Is there a way to automatically size a chart based on data?

Stimulsoft Reports.WEB discussion
Post Reply
Morgan
Posts: 11
Joined: Wed Jun 05, 2013 3:52 pm

Is there a way to automatically size a chart based on data?

Post by Morgan »

Specifically, I have a Gantt chart I want to display. The number of rows of data could be anything from 1-50; for just one row I want a small height on the chart so it doesn't look bulky, while with many rows I want a larger height so that they can be seen clearly. Is there a way to re-size a Gantt chart based on how many rows of data we have? Width should not change, and it can be within a min/max height. In a pinch, just setting it to min or max height would be workable.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Is there a way to automatically size a chart based on da

Post by HighAley »

Morgan wrote:Specifically, I have a Gantt chart I want to display. The number of rows of data could be anything from 1-50; for just one row I want a small height on the chart so it doesn't look bulky, while with many rows I want a larger height so that they can be seen clearly. Is there a way to re-size a Gantt chart based on how many rows of data we have? Width should not change, and it can be within a min/max height. In a pinch, just setting it to min or max height would be workable.
It's possible to change chart's size in the Before Print event.
Please, look at the attached report template.
GanttGroup(1).mrt
(26.67 KiB) Downloaded 198 times
Thank you.
Post Reply