Assign the User Defined Specific Color to Area in Area Bar Chart

Posted on by By admin, in Jaspersoft | 0

Prerequisites: Jasper Server 6.4.0
Database: Foodmart
User want to displays profit and loss in area bar chart using HTML5 chart.following is the result set:

But if we want to displays profit in green and loss in Red color. To assign the color, if we try to change using the pallet color:
Primary palette color sequence is

If we modify the palette color

The resultset will be:

To overcome this issue just need to write one expression in Color palette i.e Arrays.asList(“Red”,”Green”)

Resultset will be:

In case if you have any queries please get us at

Koyalwar Neha
Helical IT Solutions Pvt Ltd


Best Open Source Business Intelligence Software Helical Insight is Here


A Business Intelligence Framework

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments