Go Back   Forum - BIRT Exchange > Designing BIRT Reports Forums > Designing BIRT Reports

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2009, 08:53 AM
Junior Member
 
Join Date: Feb 2009
Posts: 22
Question 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
Attached Files
File Type: zip BarChartWidthProblem.zip (9.4 KB, 1 views)

Last edited by 4robert : 06-23-2009 at 08:57 AM.
Reply With Quote
  #2 (permalink)  
Old 07-03-2009, 02:15 AM
Junior Member
 
Join Date: Feb 2009
Posts: 22
Unhappy

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
Reply With Quote
Reply


Thread Tools
Display Modes




All times are GMT -7. The time now is 10:10 PM.
Powered by vBulletin Copyright © 2000-2010 Jelsoft Enterprises Limited.


Content Relevant URLs by vBSEO 3.1.0