Using formatter function of the HTML5 Pro Charts (highcharts) not working

0

Hi,

I've been trying to use the formatter function of my Stacked Bar HTML5 Chart but it not working though I have respected the documentation.

All I'm trying to do is to hide my dataLabels when the value of the data is lower than 5 : http://joxi.ru/Vm6y4ZdUGvV1rZ

And here is my function : http://joxi.ru/12M15zpiZkqj2J

"function () {if this.y >5 return this.y else return '';}"

I've tried it with the following returns and none of them worked : 

  • this.y
  • this.value
  • this.point.y
  • this.seris.value
  • this.seris
  • this.total
  • this.x

Thank you.

Jade

 

 

jajab's picture
20
Joined: May 20 2015 - 1:45am
Last seen: 5 years 3 months ago

1 Answer:

1

Did you enable functions in jasperreports.properties? 

com.jaspersoft.jasperreports.highcharts.function.properties.allowed=true
 

 

http://community.jaspersoft.com/wiki/functions-can-be-used-format-html5-...

ernestoo's picture
11632
Joined: Nov 29 2010 - 11:59am
Last seen: 3 years 3 months ago
Feedback
randomness