Search found 497 matches

by mhilpert
Mon Aug 03, 2020 12:59 pm
Forum: JFreeSVG
Topic: Bug with fonts containing spaces in family name
Replies: 3
Views: 2347

Re: Bug with fonts containing spaces in family name

It is generating a PDF with Apache FOP. We usually generate the SVgs (that are referenced in the XSLs) with Batik. Batik generates code like this: <g style="font-size:6px; fill:rgb(0,224,163); text-rendering:geometricPrecision; font-family:'78bcfc3c15c0b3bc - subset of LuminSans Std Reg'; stroke-lin...
by mhilpert
Thu May 28, 2020 7:24 am
Forum: JFreeSVG
Topic: JFreeSVG 4.0
Replies: 1
Views: 5274

Re: JFreeSVG 4.0

Bug in generated SVG: the style attribute "font-family" is not enclosed in quotes. For fonts with spaces in the family name, this results in missing font when rendered with Apache FOP. The very same JFreeChart object converted to SVG with Batik, does not have this problem as Batik encloses font-fami...
by mhilpert
Tue May 26, 2020 10:32 am
Forum: JFreeSVG
Topic: Bug with fonts containing spaces in family name
Replies: 3
Views: 2347

Bug with fonts containing spaces in family name

When a JFreeChart ist converted to SVG with JFreeSVG, the Font is not found when the resulting document is rendered. When using Batik to create the SVG file from the same JFreeChart object, the font is found. Reason: Batik encloses the font-family name in quotes and JFreeSVG does not. Font family na...
by mhilpert
Fri Nov 04, 2016 12:30 pm
Forum: JFreeChart
Topic: RangeMarker: text in SVG not displayed (FOP/Batik)
Replies: 0
Views: 3233

RangeMarker: text in SVG not displayed (FOP/Batik)

I wondered why my simple JFreeChart test worked and the final result in our application doesn't show the marker texts. I hunted it down to the point, where the generated SVG from JFreeChart still has the marker texts but the chart in the final PDF document hasn't. The PDF is generated via FOP (that ...
by mhilpert
Tue Apr 01, 2014 4:22 pm
Forum: JFreeChart
Topic: JFreeChart 1.0.17
Replies: 9
Views: 9593

Re: JFreeChart 1.0.17

Oh boy, the new version paints pie charts with a bigger circle! Is this by accident or is this by intend? Why? :roll: The problem ist, that 2 pie charts with the exact same pie size definitions have different sizes depending on the data and item labels. This was not the case in 1.0.15 (we had to ski...
by mhilpert
Tue Sep 03, 2013 7:56 pm
Forum: JFreeSVG
Topic: JFreeGraphics2D 1.0
Replies: 5
Views: 9400

Re: JFreeGraphics2D 1.0

Yes, that's what Batik also does and this is bad as these fonts need to be registered in the system. Better would be an alternative way to include fonts, but I don't know much about this.
by mhilpert
Mon Sep 02, 2013 4:29 pm
Forum: JFreeSVG
Topic: JFreeGraphics2D 1.0
Replies: 5
Views: 9400

Re: JFreeGraphics2D 1.0

This sounds good. How is this library handling fonts? So far, the Batik library generates system font names in the SVG; resulting in the bad behaviour, that these fonds need to be installed on the server Windows operating system. Is your library doing the same? Or is there an alternative way to stat...
by mhilpert
Tue Jul 16, 2013 3:48 pm
Forum: JFreeChart
Topic: Reaching for the Web (SVG generation)
Replies: 0
Views: 1904

Reaching for the Web (SVG generation)

Related to your article "Reaching for the Web" (http://www.jroller.com/dgilbert/category/Java): this sounds interesting - if it can replace the Batik SVGGenerator. I have just a small method converting charts to SVG: /** * Save chart as SVG file. * Required libs: Apache Batik (batik-svggen.jar, bati...
by mhilpert
Wed Jul 03, 2013 7:14 pm
Forum: JFreeChart
Topic: MinMaxCategoryDataset: how to change item lines/icons
Replies: 5
Views: 4754

Re: MinMaxCategoryDataset: how to change item lines/icons

Well, we just like to change the 3 item points to horizontal lines with their own length, thickness, color, ... it would be nice to have a selection of other symbols that can be used for min/middle/max; e.g. like the chart legend items.
by mhilpert
Tue Jun 25, 2013 10:19 pm
Forum: JFreeChart
Topic: MinMaxCategoryDataset: how to change item lines/icons
Replies: 5
Views: 4754

Re: MinMaxCategoryDataset: how to change item lines/icons

I _did_ inspect the source code and I am disapponted about the few public methods to configure the min/max lines! This is my problem in the first place! My simple test method code above is all to show the different bugs of JFreeChart - it's just awful how buggy this renderer is! The first bug is the...
by mhilpert
Mon Jun 24, 2013 4:59 pm
Forum: JFreeChart
Topic: MinMaxCategoryDataset: how to change item lines/icons
Replies: 5
Views: 4754

MinMaxCategoryDataset: how to change item lines/icons

The refernce manual doesn't tell much about this rendere, alas. I would like to change the min/middle/max item marks. Unfortunately, I can set a null icons (this works in play Java, but when exported this in SVG and integrated in FOP PDF page, I get a NullPointerException). So I create a small trans...
by mhilpert
Mon Jun 24, 2013 4:24 pm
Forum: JFreeChart
Topic: AbstractRenderer.setPaint() deprecated - but has to be used!
Replies: 4
Views: 3017

Re: AbstractRenderer.setPaint() deprecated - but has to be u

I guess the problems are the setMinIcon(), set MaxIcon(). When I call these methods, the colors just go crazy! Also the lines: they have different angles and what's worse: when I resize the Frame the chart gets currupted everytime in another way...
by mhilpert
Tue Jun 18, 2013 2:59 pm
Forum: JFreeChart
Topic: AbstractRenderer.setPaint() deprecated - but has to be used!
Replies: 4
Views: 3017

AbstractRenderer.setPaint() deprecated - but has to be used!

Methid AbstractRenderer.setPaint(Paint paint) is deprecated: @deprecated This method should no longer be used (as of version 1.0.6). * It is sufficient to rely on {@link #setSeriesPaint(int, Paint)} and * {@link #setBasePaint(Paint)}. I tried the replacement methods, but they don't work! Example: /*...
by mhilpert
Thu Apr 25, 2013 12:38 am
Forum: JFreeChart
Topic: WaterfallBarRenderer.setSeriesFillPaint() does nothing!
Replies: 5
Views: 3203

Re: WaterfallBarRenderer.setSeriesFillPaint() does nothing!

The problem with such answers is that it doesn't make sense to enhance the API for myself because the API offers the setSeriesFillPaint() and JFreeCHart should only offer an implementation for this API for waterfall charts, too. I already contributed code to JFreeChart - some got integrated in JFree...