[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Getting a chart's preferred size


I'm building a bar chart into an SWT widget that will have an indeterminate number of bars in the data. What I want to do is embed the chart in something like a ScrolledComposite so that the user can scroll to see all the bars in the chart.


By default, the chart tries to squeeze all the data into whatever space it is given (making the association between a bar and a label impossible). What I want is to turn off this scaling and have the chart give me back a preferred size (on the x axis primarily) that I can set on the ScrolledComposite to enable the scrollbars. How can I do this?