The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

Defined Colors in Charts

DonatusDonatus Junior Member
edited December 31, 1969 in Designing reports

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?



  • VirgilVirgil Administrator EM admin
    edited December 31, 1969
    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")) {
    } else if (dph.getBaseDisplayValue().equals("Spain")) {

    Virgil Dodson
    OpenText Analytics Developer Community

Sign In or Register to comment.