Defined Colors in Charts
Hi,
perhaps somebody can support me.
I would like to make a Pie-Chart with defined Colors for the Categories i.e.
the Categories are States: US is always blue - Spain is always green ...
The Color matching should also be implented via die Datasource.
Is that possible with BIRT?
Thanks.
perhaps somebody can support me.
I would like to make a Pie-Chart with defined Colors for the Categories i.e.
the Categories are States: US is always blue - Spain is always green ...
The Color matching should also be implented via die Datasource.
Is that possible with BIRT?
Thanks.
0
Comments
-
Hi Donatus,
The colors of the pie pieces can be set with script. Try something like:
function beforeDrawDataPoint(dph, fill, icsc)
{
if (dph.getBaseDisplayValue().equals("USA")) {
fill.set(0,0,255)
} else if (dph.getBaseDisplayValue().equals("Spain")) {
fill.set(0,255,0)
}
}Warning No formatter is installed for the format ipb0
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management