Home
Analytics
Hiding Specific Legend Entries
clearstone
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
Find more posts tagged with
Comments
mwilliams
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 />
Michael