BIRT Exchange Forum: How To Fix Series/Bar Width in Birt Chart through Script - BIRT Exchange Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Fix Series/Bar Width in Birt Chart through Script Rate Topic: -----

#1 User is offline   4robert 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 25-February 09

Posted 23 June 2009 - 06:53 AM

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 File(s)


0

#2 User is offline   4robert 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 26
  • Joined: 25-February 09

Posted 03 July 2009 - 12:15 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
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users