How To Fix Series/Bar Width in Birt Chart through Script
I am using birt-rcp-report-designer-2.2.2 to develop the report. I am new to BIRT and I am facing a problem while creating a "Bar Chart" which is generated from my data source. My "Bar Chart" is working fine but I want to add some more feature to it to make it lookng good. If there are 3 or more than 3 bars/series in my data souce it is looking fine in my bar chart as I have given enough space for them. But if there is only one or two type data in my data source, my bar chart is not looking good. In that case only a single/two type of bar/series is generated in the whole chart and its width is too long.
So, I want to fix its width through some script so that the single bar can be of a certain width and be placed in the middle.
I know very little about script and Can script be solution?
I have attached a figure for review. I want to solution of Case 2 in my figure.
Can anyone tell me how can I resolve this problem?
Thanks in Advance!
Roberts
Last edited by 4robert : 06-23-2009 at 07:57 AM.
|