Search code examples
iccubeiccube-reporting

Display cumulative value of each column in balloon text


I built a cumulative line graph using context.cumulativeCol() in the Value field and I am interested in displaying the cumulated value of the current column in the ballon text.

This is what I have, which only shows the value of the column:

I tried to change the default value [[Row]], [[Column]]: [[Value]] from the Ballon Text field and tried to use something like context.cumulativeCol() but I could not achieve my goal.

If it is possible, how am I supposed to do it?


Solution

  • I've just tried to put:

    return "Cumulative: " + context.cumulativeCol();
    

    to the balloon function and it worked fine in the latest version. Perhaps you are trying to return a number instead of a string from the balloon function?