Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsshowing/hiding a series based on data values?
https://www.eclipse.org/forums/index.php/mv/msg/222041/698911/#msg_698911
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?]]>Mike Wulkan2011-07-20T13:07:01-00:00Re: showing/hiding a series based on data values?
https://www.eclipse.org/forums/index.php/mv/msg/222041/698956/#msg_698956
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?]]>Mike Wulkan2011-07-20T14:44:28-00:00(no subject)
https://www.eclipse.org/forums/index.php/mv/msg/222041/698986/#msg_698986
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);
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?]]>Jason Weathersby2011-07-20T15:27:23-00:00Re: (no subject)
https://www.eclipse.org/forums/index.php/mv/msg/222041/699002/#msg_699002
Mike Wulkan2011-07-20T16:11:18-00:00Re: (no subject)
https://www.eclipse.org/forums/index.php/mv/msg/222041/1338823/#msg_1338823
The link given in the above post http://www.birt-exchange.org/org/devshare/designing-birt-reports/1289-remove-chart-series-based-on-parameter/ seems to have been removed. Can someone please give a correct like of this post or the sample file in it as I also need to remove few series based on parameter
Regards
Syed ]]>Syed Shah2014-05-07T11:43:06-00:00Re: (no subject)
https://www.eclipse.org/forums/index.php/mv/msg/222041/1371878/#msg_1371878
> Hi,
>
> The link given in the above post
> http://www.birt-exchange.org/org/devshare/designing-birt-reports/1289-remove-chart-series-based-on-parameter/
> seems to have been removed. Can someone please give a correct like of
> this post or the sample file in it as I also need to remove few series
> based on parameter
>
> Regards
> Syed