How to get in lacs,in thousand,in crores in iReport (Jasperreport) - jasper-reports

While creating bar charts in iReport Some bars has high value, so the iReport bar chart automatically adjust the length as per the value. So the values on the value axis should be adjusted.
I would like to show in lacs, in thousand, in crores as per the values adjustment.

Related

Display Range Axis Value as Alphabet using Jasper Report

I created a new bar chart in which my y-axis value are numerics but as per my requirement, I need to change it with any character. Is it possible to change the value of the y-axis from numerics to Alphabet?
This is my current output of the bar chart.
but I want output like below bar chart.

Aligning BIRT charts regardless of the legend size

I have created a BIRT report with multiple charts.
All the charts include different data but for the same time span.
So i want to make the x axis of the charts align with each other so it is easy to read all the charts at once.
But the series names of these charts are different from each other.And some charts gets dynamic series names in which the length cannot be predicted.
Even though i align the charts with same width and height because of the series names the legend gets too lengthy and the alignment gets ruined.
According to the requirements given to me legend should be placed at the right side of the chart.
Is there a way to fix the size of the legend without truncating the series names.May be a way to wrap the series names so the size of the legend will be same for all the charts and the charts will be aligned nicely.
From your Eclipse designer:
Edit charts -> Format charts -> Legend -> Layout -> Wrapping width
Set a wrapping width value as expected, for example try 60.
You might also have to increase the bottom inset of legend entries to avoid overlapping:
Edit charts -> Format charts -> Legend -> Entries -> Bottom inset
From your Eclipse designer: set Format Chart->Legend->Entries->Ellipsis property to possible max length of your dynamic legends. and the problem will be solved.
As this property work as follows:
The default value is "1". Int attribute "Ellipsis" specifies the behavior of shortening the legend item's text with ellipsis if there is not enough space to display the whole text. Value 0 indicates that the feature is disabled, and the legend item will either be displayed with whole text or be dropped. A positive value n represents the minimal count of characters to be displayed before the ellipsis, which means the legend item will either be dropped or be displayed with at least n characters.
Hope this will solve your problem. It worked for me.

Cognos: How to customize the values shown in column Gaph

I have a column chart stacked. I want to show both actual value as well as the percentage value on top of each stack. How can i do that?
To display the value or the percentage, select the Bar chart Icon next to the Series Item, in
properties->Chart Labels->Values select 'Show'.
Where they are displayed is determiend by Value Location. If you have selected the Stacked grouping type, you will see values. If you selected the Stacked 100% type you will see percentages.
You cannot display both values and percentages in the same Series item in Cognos 8.4 (Doubt you can do it in Cognos 10 either).

iReport Line and Bar in same chart

I'm using iReport to try to create a chart for bug tracking. I need a stacked bar chart for the different severities of the open bugs by day and a line showing the total number of bugs by day. It's easy enough to build a multi-axis chart but it always shows up with distinct ranges on the Y axis. I want the Y axis to be the same range so that the total bugs line floats above the stacked open bugs bars. This is simple to do in Excel or Crystal Reports but I cannot see a way to do this in iReport. I need to be able to either merge Y axis in a multi-axis report or be able to change the series type of one of the series from stacked bar to line. Any tips/reading materials would be greatly appreciated.
It would be nice if it were more automated, but you can use a solution like this pretty easily:
Instead of calculating the Range Axis height automatically, create your own variable to decide an appropriate value for the maximum value. Then you can set the Range Axis Max Value to the same thing for both charts.

Jasper Reports, Expanding a Band Based on the Data in a Chart

Is there a way to get a band to resize based on the amount of data presented in a gantt chart? I can get the number of rows that are in the chart, if that helps. It seems like there should be a way around this.
In otherwords, how does one dynamically resize a chart in JasperReports?
The solution to this is to put a text band right beside the chart and estimate the appropriate height, use a scriptlet to generate enough text that would end up being close to the right height. On the text box, stretch on oversize, and the band will increase. Stretch the chart to the band height.