Display Text Values Diagonally in Jasper Reports

Posted on by By Satya Gopi, in Business Intelligence, Data Visualization, Jaspersoft, Open Source Business Intelligence | 0

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,

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Grab The 30 Days Free Trail

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

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Lets Register For Live Demo

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

logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

Thanks,
Satya Gopi Parisa,
BI Developer.

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments