Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Display asterisk for null values in Bar chart
Display asterisk for null values in Bar chart [message #889825] Tue, 19 June 2012 19:37 Go to next message
S K is currently offline S KFriend
Messages: 5
Registered: June 2012
Junior Member
I am using 2.6.2 and our requirement is to display asterisk in place of missing bars. I tried replacing null values with asterisk in afterDatasetFilled function, but chart does not display non-numerical characters.

Replacing the null value with zero and suffixing it with asterisk in the chart option produced a bar with height 1, which was not acceptable.

Attached is a screenshot of how the chart needs to look based on our requirement.

Thanks in advance
Re: Display asterisk for null values in Bar chart [message #890304 is a reply to message #889825] Thu, 21 June 2012 20:22 Go to previous messageGo to next message
S K is currently offline S KFriend
Messages: 5
Registered: June 2012
Junior Member
Any ideas?
Re: Display asterisk for null values in Bar chart [message #890571 is a reply to message #890304] Fri, 22 June 2012 15:28 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

If you can replace the null value with a value that will not show up in
your dataset then you could use a bit of script to hide the bar and
replace the label with an *. Take a look at the attached example.

If you want you could also use this feature:
http://www.eclipse.org/birt/phoenix/project/notable2.6.php#jump_8
set your null values to 0 and then use the same script in the above
example to hide the bar and change the label.

Jason


On 6/21/2012 4:22 PM, S K wrote:
> Any ideas?
Re: Display asterisk for null values in Bar chart [message #890719 is a reply to message #890571] Fri, 22 June 2012 22:47 Go to previous message
S K is currently offline S KFriend
Messages: 5
Registered: June 2012
Junior Member
Thanks. This would work for us.
Previous Topic:Suppress group headers based on condition
Next Topic:How to hide the first line in cross table
Goto Forum:
  


Current Time: Thu Apr 25 18:12:36 GMT 2024

Powered by FUDForum. Page generated in 0.03077 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top