Display Text Values Diagonally in Japser Reports

Here we will discuss how to display the Text Values Diagonally in  Jasper Reports with a simple Example,
Prerequisites:: Ireport 5.6 ,Jasper server 5.6
DataBase : Foodmart
In this Example ,we will display the column headers diagonally by using a Table Component
Step 1:Create a sample report contains Table Component

step1

Step 2: Next Increase the Column Height and do the below changes

Step2

After the above changes the Report looks like

step3

Step 3:Assign the below property for the column headers :

step4

Step 4:Then Deploy the Report in Jasper Server,then the output will be

step5

We need to use overrides_custom.css to see Text field as Diagonally ,in overrides_custom.css file include the below code and make it as a default theme

.table_header  span
{
                                                 transform:rotate(-150deg);
                                       display:inline-block;
}

After making the Theme as  Default Theme,re-run the Report ,Output :

step6

Thanks,
Satya Gopi Parisa,
BI Developer.

Leave a Reply