|
|
(no subject) [message #698986 is a reply to message #698956] |
Wed, 20 July 2011 15:27 |
|
Mike,
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
xAxis =chart.getAxes().get(0);
yAxis1 = xAxis.getAssociatedAxes().get(0);
//yAxis1.getSeriesDefinitions().remove( 1 );
//yAxis1.getSeriesDefinitions().remove( 0 );
}
Jason
On 7/20/2011 10:44 AM, Mike Wulkan wrote:
> I took a look at:
> http://www.birt-exchange.org/org/devshare/designing-birt-reports/1289-remove-chart-series-based-on-parameter/
>
> 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?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04046 seconds