Aligning text in pieChart legend - How to right align the content inside the legend - jasper-reports

As of now my legend is displayed like this
test1 5%
test2test2 10%
test2test2test3 85%
I am trying to display like this, with spaces and right aligned.
test1-------------------------5%
test2test2test2-----------10%
test3test3test3-----------85%
Any suggesstions appreciated

You can use the approach shown here to create a separate panel containing your legend items. Give the panel a GridLayout(0, 1); specify JLabel.LEFT for the left column and JLabel.RIGHT for the right column. A complete example is shown here.

Related

How to Remove on Vertical Gridlines in Tableau Desktop App

I would like to only remove the vertical gridlines from a Tableau chart. I am aware that I can go to Format > Lines > Gridlines > Set to NONE. But this removes both vertical and horizontal gridlines. I am trying to only remove the vertical gridlines. (See the screenshot. I have made the gridlines little darker to demonstrate my question).
I looked around, but could not find a solution. Please help.
On the Column Divider from the Format Boarders menu, move the Level slider to the left.
Result:
At the top of the format pane in the left side bar, don't select the Borders icon (which looks like a little grid) Instead, select the Lines icon just to the right (which looks like a set of different width lines)
The Borders settings control the display of borders between cells and panes, i.e. the parts of the view created when putting discrete (blue) fields on the Rows or Columns shelves.
The Lines settings control the display of the axis, grid and other lines, i.e. the parts of the view created when putting continuous (green) fields on the Rows or Columns shelves.
Once you are working with the Lines format settings, you can scope your changes to either just the vertical grid lines, just the horizontal grid lines, or both by selecting Sheet, Rows or Columns from the tab just under the icons discussed above.
Experiment to get the hang of it. Whenever you change a setting from the default value, the title goes bold. You can right click on bold titles to clear the change, or you can clear all the changes to a section by hitting clear at the bottom of the format pane. So its easy to undo a change you don't like, allowing you to experiment with confidence to learn how the settings work.

How to adjust center axis width in a butterfly chart in Tableau

I am working on a butterfly chart. I create a center zero axis with "Text" type. Everything goes fine, except for one thing.
The width of the center axis is too broad, I want to change the width. But I don't know how to do it.
If I shrink the center axis, left and right are also shrunk. It seems the ratio of width is fixed.
Here is my demo workbook on Tableau Public.
Thanks for any help.
I was able to recreate your butterfly chart following the steps below.
"Concatenated by Dashboard
To shrink the middle margin, we can use a dashboard to concatenate instead of a single worksheet.
Divide into three Worksheets: right-click on the sheet tab and duplicate three copies. Remove the other parts in each worksheet.
Create a Dashboard and concatenate three segments: drag these segments to the corresponding positions.
Change the Dashboard Size to 1200 x 4500. concatenated by dashboard
Set left and right segments as Standard and set the middle segment as Fit Width. Then, Resize them to a proper layout.
Right-click Legends and check Floating, then put them in the appropriate place.
Polish the chart:
Keep only the left title and remove others.
show and rename the left and right axis."
Source: https://www.pluralsight.com/guides/tableau-playbook-diverging-bar-chart

Vertical Align Crystal Report Text Filed

I have a scenario in which my reports fields doesn't look like centered Vertically,
Below is the screen Short of the output.
As it can bee seen from output that data with a bigger font is clearly seen centered vertically, but the data pointed with lines is left-top justified, i want that to be left-centered.
For vertical alignment I did this .
and code behind formula is:
if {NewReport;1.TireLevel} = 1
then
crCenteredHorizontally
else
crLeftAligned
The Editor Screen.
Sadly, Crystal Reports doesn't support vertical alignment in the same way it supports horizontal.
It's possible to use labels on the vertical ruler and enforce Snap to Grid, but that might not work within a table. Or you can add line breaks, blank rows, or plain white objects to push things into position. But there's no easy way to enforce a vertical center.
In your particular case, I would actually make two seperate fields: One for large text and one for small text. Layer them on top of each other and reuse your current formula to alternate their suppression. This way you can move the smaller text vertically down without undoing the vertical alignment on the large text field.

How to create vertical line in iReport?

I'm using iReport-3.7.4 ,
I want to make table in detail like this ,
but , the line in this table can't longwise until the end of the table,
I've placed this table in detail ..
In iReport, Right Click on a Field, and goto Padding and Borders and set Line width to 1. As shown below:
Put the repetitive things in sub-report and draw the vertical lines in appropriate margins. Load the sub-report in the main window with its width tallies with the parent width. Test & modify the report again an again till you get the lines in the correct places. Moreover make sure you have checked on Print Repeated Values property for the line.
I've attached some reports I've created for my project, hope they can explain you well.
The Parent Report
The Sub-Report
The Final Output
If you really want to draw a line then just drag line element from palette and drag the bottom middle point of that tile element to increase the size and then decrease the width by dragging left middle point.

SSRS overlapping column chart

currently i have the following chart:
It currently contains one column (blue one) and a range column (white one). But what i really need is a chart which looks like the following:
So the white column should be overlapped by the blue column. I tried to change the range column to a normal column and changed the "CustomAttribute" PointWidth but was not able to get my chart looking like the needed chart.
Does somebody knows how to do that? Thanks
#glh: I know that, it currently looks like this (changing the white range to column):
ANGEFALLEN = blue column
EINGEPLANTV1 = white column
Problem is that the white column is now right to the blue column.
If i change the order of the chart data the blue column ins right to the white column. But i need the white column to be behind the blue column like shown in the second picture of the main post / question.
Followup 25.04.2013:
The chart should look like this:
I need to move 1/3 of the white column behind the blue column so that 2/3 of the white column is still visible. The blue column has to be in the foreground and the white column in the background.
Overlapping Series:
Change the "overlapping" series to a "Range Column" chart type. This will allow you to layer the two series on top of each other.
Once you do this, you will notice that the series will get two value drop-downs:
Set the "Low" drop down to an expression with the value of 0.
Set the "High" drop down to the value you would like to represent.
Offset Series Position:
I am actually not sure if this is possible in SSRS. However, you can play with the widths of the layered series to achieve a similar effect.
Set the PointWidth propety of the series (under CustomAttributes) either larger or smaller than the default .08, depending on your desired effect.
Here is a quick mockup I put together. It isn't exactly what you were looking for, but maybe it'll get your creative brain juices flowing.
You should be able to drag the values around in the values box or there will be a blue up or down arrow to alter the order your data is displayed. See below for an example of what you will see when you select the charts data.