Skip to main content



      Home
Home » Archived » 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
Eclipse UserFriend
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
Eclipse UserFriend
I replied in your other post:

http://www.eclipse.org/forums/index.php/m/1059141/
Previous Topic:impossible to extract the incorporated font
Next Topic:Split combined cells in a crosstab
Goto Forum:
  


Current Time: Sat Mar 15 03:45:29 EDT 2025

Powered by FUDForum. Page generated in 0.03725 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top