I have a chart that has a series that uses data value X. I would like to hide the entire series legend entry and all (ie., like it didn't exist) if the first data value of X is null. How can I best do this?
You can move the code from the beforeFactory to the beforeGeneration of
the chart like:
function beforeGeneration( chart, icsc )
//to get the reportContext use
//rpCtx = icsc.getExternalContext().getScriptable();
//rpCtx.getParameterValue(.. or rpCtx.getGlobalVariable
//to decide which series to remove
yAxis1 = xAxis.getAssociatedAxes().get(0);
On 7/20/2011 10:44 AM, Mike Wulkan wrote:
> I took a look at:
> from another post. It gets me close in that it allows me to remove the
> series, but now the issue is that the condition for removal is derived
> from a dataset not a report parameter and I don't think I have access to
> this in the beforeFactory method of the report.
> I could put a hidden table in the report and set a global parameter but
> I'm not sure that this would be done in the correct order?