dking Posted September 14, 2009 Share Posted September 14, 2009 Hallo all together =),I have a small question. I have 3 integer-fields and a XY Chart.There are 2 series in the chart:First:Field a = x-AxieField b = y-AxieSecond:Field a = x-AxieField c = y-AxieThe legend shows the discription of both series.I want that the Legend have only 1 discription, if for example b have no data (=null). Is that possible?? GreetzDKingPost Edited by dking at 09/14/2009 13:36 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 14, 2009 Share Posted September 14, 2009 Hi, I might not understand exactly what you mean, in which case it would be better if you could post some JRXML and some screenshots to better descriebe what you want to achieve. But have you tried to use the same series name for your two points? It would appear as a single series. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
dking Posted September 15, 2009 Author Share Posted September 15, 2009 Hallo,i have uploaded the idea =) GreetzDKing Link to comment Share on other sites More sharing options...
Teodor Danciu Posted September 29, 2009 Share Posted September 29, 2009 Hi, If you want your "blabla" series to not appear at all, if it has only null values, then you must "hide" it by giving it the same series name as "bla", in case the C field value is null.Also, when the C field is null, the Y expression of your blablah series should actually return the B field.This way, when the C field is null, the second series will actually behave like the first series and add the same points.The first series will have its point duplicated, but this has no visual impact. The series name for your second series should be something like: $F{c} == null ? "blah":"blahbla" while the Y expression should be: $F{c} == null ?$F{c}:$F{b} I hope this helps.Teodor 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