garcialiang Posted July 14, 2013 Share Posted July 14, 2013 Hi,How can I change the serie color with the condition.Ex: if sex='F' then seriecolor=red, if sex='M' then seriecolor=blueCould you help me? Anne Garcia Link to comment Share on other sites More sharing options...
Ankur Gupta Posted July 15, 2013 Share Posted July 15, 2013 Hi ,This can be performed by using styles, as you can put conditional CSS on the basis of the conditions.Please use styles ,hope you have an idea about the same.If not then feel free to ask. Hope that it helps Thanks,Ankur Gupta Link to comment Share on other sites More sharing options...
garcialiang Posted July 15, 2013 Author Share Posted July 15, 2013 Hello,Thank you,I tried with the style, but the report didn't execute. I don't understande.Anne Link to comment Share on other sites More sharing options...
Ankur Gupta Posted July 15, 2013 Share Posted July 15, 2013 Hi Jennifer,I think you are doing something wrong,check the process belowSTYLE SETUP 1. Report Inspector 2. RightClick "Styles", "Add Style" ** Name = countryName 3. RightClick "countryName", "Add Conditional Style" ** Conditional Expression ** make sure the expression returns the boolean value $F{SHIPCOUNTRY}..equals("USA") ** Opaque = checked (for the condition) ** Backcolor = GREEN (for the condition) STYLE USING 1. click field you want to add condition to 2. Properties Window ** Opaque = checked ** Style = countryName I have used the sample database to depict the same.I am attaching the files.(PDF as well as JRXML).In the sample I have assigned different colors to different countries..To check on your end please run the sample database from top menu help-->sample-->run sample database hope that this explains youThanks,Ankur Gupta Link to comment Share on other sites More sharing options...
garcialiang Posted July 15, 2013 Author Share Posted July 15, 2013 Hello, thank you, I'm sorry. I use le scatter chart. Le style can't executer with scatter chart. It can executer with the zone texte.Could you help me? Anne Link to comment Share on other sites More sharing options...
Ankur Gupta Posted July 15, 2013 Share Posted July 15, 2013 Hi,Are you trying to apply the style on the scatter chart??If not then you should not face any problem in applying the style.If you want to change the color or the default pattern in the scatter chart thrn it would be possible using custom chartsHope that it helpsThanks,Ankur Gupta Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now