Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PatternImage(Change color for Area to Pattern)
PatternImage [message #1792667] Fri, 20 July 2018 16:46 Go to next message
Nikola Baranov is currently offline Nikola BaranovFriend
Messages: 11
Registered: February 2012
Junior Member
Hello!

I`m so long can`t find info to solve my difficulty.

I`ve got the area chart and I can not change the filling of areas from color to pattern like chessboard through script.

Can somebudy help me?

Big thanks.
Re: PatternImage [message #1792741 is a reply to message #1792667] Mon, 23 July 2018 11:37 Go to previous message
Nikola Baranov is currently offline Nikola BaranovFriend
Messages: 11
Registered: February 2012
Junior Member
I found out If I change chart type to BarChart or LineChart my script like this

function beforeDrawDataPoint( dph, fill, icsc )
{
if( fill.getClass().isAssignableFrom(PatternImageImpl))
{
wclr = fill.getBackColor();
wclr.setRed(255);
wclr.setGreen(255);
wclr.setBlue(255);
fill.setBackColor(wclr);
}
}


works ok!

But when type of the chart is AREA then nothing happend!
Why?
Previous Topic:Changing the output file name of the report
Next Topic:Birt Conditional Page Break
Goto Forum:
  


Current Time: Fri Mar 29 12:59:36 GMT 2024

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

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

Back to the top