Skip to main content



      Home
Home » Archived » BIRT » problem with visibility settings
problem with visibility settings [message #1017855] Tue, 12 March 2013 12:35 Go to next message
Eclipse UserFriend
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 153 times)
Re: problem with visibility settings [message #1018304 is a reply to message #1017855] Wed, 13 March 2013 11:34 Go to previous message
Eclipse UserFriend
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: Thu Apr 24 21:51:42 EDT 2025

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

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

Back to the top