problem with visibility settings [message #1017855] |
Tue, 12 March 2013 16:35  |
Eclipse User |
|
|
|
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 
Attachment: Untitled.png
(Size: 12.75KB, Downloaded 147 times)
|
|
|
Re: problem with visibility settings [message #1018304 is a reply to message #1017855] |
Wed, 13 March 2013 15:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03245 seconds