Jump to content
We've recently updated our Privacy Statement, available here ×

Hide parts of the chartlegend


dking

Recommended Posts

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-Axie

Field b = y-Axie

Second:

Field a = x-Axie

Field c = y-Axie

The 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??

 

Greetz

DKing



Post Edited by dking at 09/14/2009 13:36
Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...