Jaspersoft Chart Label
search cancel

Jaspersoft Chart Label

book

Article ID: 387591

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

How can I get the figures in the labels at the top of the columns to rotate so they read left-to-right instead of up-and-down?

Resolution

please do the following:

- Launch the Report in Jaspersoft Studio

- Edit the Main JRXML and modify the below changes.

- Add your function to the yAxis[1].labels.formatter property in the chart's advanced properties settings:

function() {return '$' + (this.value / 1000000).toFixed(3) + 'M';}
 
- Add the following to the jasperreports.properties file in the \jasperserver-pro\WEB-INF\classes folder. Then, restart the server.

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

- The yAxis labels in the chart should display both "Completed" on the left and "EAC" on the right without any additional settings. 

 

Additional Information

Note: On-Prem Only!!