Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » how-to-get-a-x-axis-label-value-by-parameter-in-bar-chart
how-to-get-a-x-axis-label-value-by-parameter-in-bar-chart [message #1059072] Thu, 16 May 2013 10:05 Go to next message
4040 4040 is currently offline 4040 4040
Messages: 25
Registered: February 2013
Junior Member
here i attached is a model example ...
like wise

my requirement


function beforeGeneration(chart, icsc)

{
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
importPackage( Packages.org.eclipse.birt.chart.model.attribute );
xAxis = chart.getBaseAxes()[0];

if ( xAxis.getType() == AxisType.TEXT_LITERAL){
var groupparm = icsc.getExternalContext().getScriptable().getParameterValue("geography");
if( groupparm == "zone")
{
xAxis.?( ?.create("?") );
}
else if( groupparm == "state" )
{
xAxis.?( ?.create("?") );
}
else if( groupparm == "city" )
{
xAxis.?( ?.create("?") );
}

}


like wise i have one table in that many columns are there zone,state,city,...its go on
so now my doubt is
for example:

if i click option "zone" in list box i have get value in bar chart south,west,east,north in x-axis and corresponding net sale in y axis....

if i click option "state" in list box i have get value in bar chart tamilnadu,kerala,chennai, in x-axis and corresponding net sale in y axis....

can u create a sample report for this....

how to change chart query based on the selection and make the column names generic

its urgent requirement
Re: how-to-get-a-x-axis-label-value-by-parameter-in-bar-chart [message #1059142 is a reply to message #1059072] Thu, 16 May 2013 20:39 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 828
Registered: July 2009
Senior Member

I replied in your other post:

http://www.eclipse.org/forums/index.php/m/1059141/


Regards,

Michael Williams
BIRT Exchange
Michael's BIRT Blog
Previous Topic:Birt report runs for few minutes displaying "loading ..." and then goes blank
Next Topic:Split combined cells in a crosstab
Goto Forum:
  


Current Time: Tue May 28 22:36:15 EDT 2013

Powered by FUDForum. Page generated in 0.01666 seconds