Hiding Specific Legend Entries
Options
I have managed to hide the text associated with a specific legend item with the following chart script (I am using BIRT 2.1):
function beforeDrawLegendEntry( label, icsc ){
var label_text = label.getCaption().getValue();
if (label_text == 'null')
{label.setVisible(false);
} else {
label.setVisible(true);
};
}
But how to I hide the colored shape that corresponds to the series in the chart? It is a grouped y-axis chart. I need the 'null' series in the chart so that my x-axis time series doesn't skip any hours of the day where there is no data for the other data series.
Thanks,
JT
function beforeDrawLegendEntry( label, icsc ){
var label_text = label.getCaption().getValue();
if (label_text == 'null')
{label.setVisible(false);
} else {
label.setVisible(true);
};
}
But how to I hide the colored shape that corresponds to the series in the chart? It is a grouped y-axis chart. I need the 'null' series in the chart so that my x-axis time series doesn't skip any hours of the day where there is no data for the other data series.
Thanks,
JT
0
Comments
-
Hi JT,<br />
<br />
You should be able to find what you need in this past forum thread:<br />
<br />
<a class='bbc_url' href='http://www.birt-exchange.com/modules/vbulletin/showthread.php?t=9706'>http://www.birt-exchange.com/modules/vbulletin/showthread.php?t=9706</a><br />
<br />
Regards,<br />
<br />
MichaelWarning No formatter is installed for the format ipb0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 104 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax