BIRT Formatting Legend of a bar chart - java

I have a small problem, a BIRT report I designed uses a bar chart. Now I want to increase the space between colored box and the text in the legend. Is that possible? (I'm using BIRT 2.1.3)
http://www.fotos-hochladen.net/barchartproblemhng05e76.png
EDIT: I forgot to mention I am using BIRT 2.1.3 with the RCP Designer.

It doesn't look like that's possible. You can increase the space between the chart and the legend box, but there's no option to increase the space between the box and the text.
Perhaps you could try appending some spaces onto the series name when passing the data to BIRT (yes, that does sound like an awful workaround).

Related

Drawing a range column chart using DOT language or java or similar?

I want to draw a range column chart for my data, something similar to this.
Any suggestion?
GraphViz isn't suitable for this sort of chart - it draws graphs of the "nodes and edges" type, rather than this sort of style.
It looks like the "range column" chart is essentially a stacked bar chart with four elements in each stack, with the bottom element and third element drawn without borders and with a transparent fill. So, I'd suggest trying to use a conventional graphing library that gives enough flexibility of control over bar charts to produce what you want.

Draw scatter plot with crosshair on each data points in iReport

Is it possible to draw scatter chart with horizontal and vertical line on the specific data-point in iReport or any other reporting tool except Excel?
Sure, as iReport Charts are based on the JFreeChart Library and you can bind a ChartCustomizer to your chart in iReport, that should not be a big problem.
Search google for these catchwords and you'll get ahead.

Building and printing complex table layouts with Java

A customer requested me a software, and one of its requirements is build a form and fill it with data collected from database.
This form is currently being created in Excel. It uses cells to build the form, some cells have blank background, others blank background with black bottom border (to look like a line where text is typed), others have gray background with white text, and there's also a logo image. In Excel, some cells are merged to become bigger than other cells. They fill the text in another spreadsheet and the required cells in the form take that text and format it.
I've looked many report frameworks in Java, some are very complex and some look like Excel's graph builders, but I saw none that can make a complex 2D form like this.
Data filled in it is simple, like name, quantity, some numbers, but they have different length requiring for example that name's cell to be merged to cover a full horizontal line, and some have smaller font size. There's no repeated data that would require sorting and I have no problem gathering the data.
In the end, the filled form must also be printed, so I can't use normal Swing table or grid. It will be used in Windows now, but it'd be nice to support Linux printing too.
Any suggestion of a Java component that builds a 2D layout like this and fills it with strings will be very much appreciated. I even thought of taking a screenshot of their current form and just use 2D Graphics to print the text, but I'd not be able to print it.
This is an example of the kind of form I must build, it's somewhat like that but some areas have gray background with white text:
No, it's not a duplicate, but it is a good example of the layout.

JFreeChart Get Legend Graphic

In my application, I am showing data in a table as well as through a Dual Axis Bar/Line JFreeChart. To save some space (as the charts are being saved as PNG and put on PDF with iText PDF), I wanted to take the Graphics from the Legend, use them in the tabular view, and remove the legend.
Is there a way to grab the icons that lie with the legend item? I have found the LegendGraphic class, which seemed like would be the method to retrieve the icon from the LegendItem, but have not found anything in the documentation for LegendItem that would indicate it does.
It would be preferable if they were returned in an object that could easily be used to create a com.itextpdf.text.Image, such as byte[] or java.awt.Image.
You can get a series' LegendItem using the chart renderer's getLegendItem() method. You can change a series' Shape using the methods of ShapeUtilities, as shown in this example. See also DefaultDrawingSupplier for details of how createStandardSeriesShapes() works.
Addendum: Note that the renderer's getLegendItem() method works even if you create the chart with no legend or later use chart.removeLegend(). Once you have the LegendItem, you can use it's attributes as required.
System.out.println(renderer.getLegendItem(0, 0).getShape());
System.out.println(renderer.getLegendItem(0, 0).getFillPaint());

Gantt Chart for JSP?

I've tried using JSGantt and it's really good. But I would like to know if there are other Gantt Chart that offers greater interactivity such as dragNdrop and resizing directly on the chart.
I saw Gxt Gantt but it is not free.
Chart should also be compatible with Java/JSP.
Have you checked JFreeChart
Here is the sample for JFreeChartGantt
The only free web based Gantt charts I know of are JsGantt and DHTMLxGantt http://dhtmlx.com/docs/products/dhtmlxGantt/index.shtml

Categories

Resources