Does it work with Cocoon 2.1 ?

Yes, you only need to make same simple changes to the source code and recompile:

  1. Change ChartWrapper.java (follow the directions in the comments marked with "XXX")
  2. Change JFCFactory.java (follow the directions in the comments marked with "XXX")
  3. Change JFCSerializer.java (follow the directions in the comments marked with "XXX")
  4. Change JFCTransformer.java (follow the directions in the comments marked with "XXX")
  5. Recompile the source code against Cocoon 2.1

However, you can as well use this this jar

[top]

Can I make both JPEG and PNG images in the same sitemap ?

If you use JFCTransformer, use the SVG-to-JPEG serializer or the SVG-to-PNG serializer to have both formats. If you happen to use JFCSerializer, you have to define two serializers (with different names, of course) setting their mime-type attribute, respectively, to "image/png" and "image/jpeg".

[top]

How can I make "dynamic" charts out of database data ?

As you are used to do in Cocoon: dynamically produce an XML document written according to the Fins XML schema and then pass it to the JFCSerializer. The XML document may come out of SQLTransformer for the dynamic data and use XSLTransformer for the transformation into a Fins XML document.

This being Cocoon there are a number of other ways to achieve it, but this is the most straigthforward

[top]

How comes the log keep saying my series (or category) was not found while I defined it ?

Are you sure you defined the same ID in the "series" (or "category") element and in the dataset ? Remember that these IDs are case-sensitive (id="foo" is different from id="Foo"). Why this ? Well, ID attributes are supposed to be case-sensitive in XSLT... we just followed the trend (though IDs in Fins are not XML names, hence, they can start with digits and have spaces in between).

[top]

Bars in a chart bar appear to be round pillars, but I want plain, rectangular, bars, how can have them ?

You are probably using a version of JFreeChart more recent than 1.0.10: from JFreeChart 1.1.11 onwards the default appearance of bar charts have changed. Unfortunately, Fins still uses JFreeChart 1.0.5, so the work-around is to revert to a pre-1.0.11 version of JFreeChart. Thanks to Joachim Wackerow for pointing this out

[top]

I can't get any SVG image and in error.log I get java.lang.reflect.InvocationTargetException: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.

This problem is related to the use of the Batik library (SVG rasterization toolkit). Please refer to the chapters "UNIX with X server" and "Headless UNIX and PJA" of the Cocoon installation page Cocoon installation page.

[top]

Where is the Fins XML Schema ?

Here.

[top]

Whose fins are the ones in the logo ?

Luca Morandini's ones. They are C4's Falcon 25: great for deep apnea diving, but a bit cumbersome in shallow waters.

[top]