Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Display asterisk for null values in Bar chart
Display asterisk for null values in Bar chart [message #889825] Tue, 19 June 2012 15:37 Go to next message
S K is currently offline S K
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 16:22 Go to previous messageGo to next message
S K is currently offline S K
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 11:28 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
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 18:47 Go to previous message
S K is currently offline S K
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: Mon Sep 01 14:48:27 EDT 2014

Powered by FUDForum. Page generated in 0.01847 seconds