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

Pie Chart with % in labels


dperalesm

Recommended Posts

Hi guys,

I have a problem with a pie chart with % in labels.

Value = $F{INFRACTIONS} + ""

Labels = $F{INFRACTIONS} / $V{INFRACTIONS_SUM}+ ""

The values in the chart are ok, but the labels with % are wrong.

It's like the variable $V{INFRACTIONS_SUM} was nos properly calculated for each value in the series.

To help check this, I've added more info to the labels, including infractions, the total sum and the % calc:

Labels = "Inf: " + $F{INFRACTIONS} + "n"
+ "Total: " + $V{INFRACTIONS_SUM} + "n"
+ "%: " + new Double($F{INFRACTIONS} / $V{INFRACTIONS_SUM})

This is how it's shown when executed:

print.PNG.9fd4c7f5f38f37ed1cb8682ac149ba76.PNG

As you can see, the variable is not properly calculated for the first result (red line) but is ok for the second (green line).

But the same % calc in the table above is ok, maybe because of Evaluation Time "Auto" in text field (yellow marker).

Anybody could help me with this? Any other workaround that works?

Thanks in advance!

Dani

 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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