Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » problem with visibility settings
problem with visibility settings [message #1017855] Tue, 12 March 2013 16:35 Go to next message
Alex Sabev is currently offline Alex Sabev
Messages: 1
Registered: March 2013
Junior Member
Hi All,
I'm new with Birt and have some problem with visibility settings.

How can I do so that if values in the chart are NULL they should be hidden?

As you can see in the photo, value with NULL must be hidden in order to understand more clearly information in chart.

Thanks Smile
  • Attachment: Untitled.png
    (Size: 12.75KB, Downloaded 41 times)
Re: problem with visibility settings [message #1018304 is a reply to message #1017855] Wed, 13 March 2013 15:34 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Do you want just the labels to disappear? If so add a script to the chart like:
function beforeDrawDataPointLabel( dph, label, icsc )
{
if( dph.getOrthogonalValue() == null || dph.getOrthogonalValue() == 0){
label.setVisible(false);
}else{
label.setVisible(true);
}

}

If you want the whole point gone, add a filter to the chart to remove null values. This is done on the second tab of the chart wizard. Look for the filters button.

Jason
Previous Topic:Export Birt report in Excel
Next Topic:How to get the CategoryAxis in startImageMethod() (HTML Emitter)
Goto Forum:
  


Current Time: Fri Sep 19 10:00:44 GMT 2014

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

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