BIRT Water Fall Chart [message #707162] |
Mon, 01 August 2011 06:06  |
Eclipse User |
|
|
|
I am new to birt ,I have formed Water fall chart from stacked charts .I need help on how to change color of series based on the previous series value. Where to do the scripting .Based on that want to denote if it is raise or fall of value.
In this i need to know how can i retrieve the previous values of series and use the same.
Using BIRT 2.2 - > Runtime
Thanks In advance
|
|
|
|
|
|
|
|
|
|
Re: BIRT Water Fall Chart [message #708295 is a reply to message #708258] |
Tue, 02 August 2011 12:49   |
Eclipse User |
|
|
|
If you were using a later version of BIRT you could change it to color
by categories and use a script like:
function beforeDrawLegendItem( lerh, bounds, icsc )
{
idx = lerh.getDataIndex();
if( idx > 0 ){
if( list[idx] >= list[idx-1] ){
lerh.getFill().set( 0,255,0);
}else{
lerh.getFill().set( 255,0,0);
}
}
}
BIRT 2.1.2 does not support changing the fill on the legend.
You may be able to change the palette but I am not certain if it would
be to late in the code.
Jason
On 8/2/2011 12:08 PM, vandhanaa.r wrote:
> Will Take your points and work on it
> But , Jason as you say that is the problem i am facing If I change Legend according to catogery it conflicts with waterfall chart.
> So i could not give a legend depicting red is fall in data , green is rise in data in below rpt.
>
>
|
|
|
|
|
|
Re: BIRT Water Fall Chart [message #713642 is a reply to message #711492] |
Mon, 08 August 2011 12:50  |
Eclipse User |
|
|
|
3.7 should work in WAS but I do not know about RAD.
Jason
On 8/6/2011 3:50 AM, vandhanaa.r wrote:
> Jason ,
> Just now checked the post, The designer version i am using is 2.1.3
> and the BIRT Runtime is 2.2.0.
> So , i am unable to view the script changes pertaining to
> beforeDrawLegendItem in the BIRT Viewer i will check in the runtime.
>
>
> Also wish to know the Latest Birt 3.7 version compatibility with RAD and
> WAS server.
>
|
|
|
Powered by
FUDForum. Page generated in 0.11263 seconds