|
|||
|
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 08:57 AM. |
|
|||
|
Still no feedback from anybody!!
I want to add some more points here. Just I have written some script in my reports. Now want to know how to apply this solution. I think the probable solution is like this:- If count_type_of_bar>2 then bar.width=1cm and bar.position= middle else do nothing end if Here I dont know what are the exact properties to get "count_type_of_bar" and "bar.width" and "bar.position". I am giving this just for example. For Example, I know dph.getBaseDisplayValue for checking "Bar Value". How to access these properties? It is urgent. Please Help me. Thanks in Advance! Robert |
![]() |
| Thread Tools | |
| Display Modes | |
|
|