What is the "special" Orson Charts integration? Orson Charts uses its own hint (Chart3DHints.KEY_BEGIN_ELEMENT, not SVGHints.KEY_BEGIN_GROUP) to avoid having a compile-time dependency on JFreeSVG. At start-up, JFreeSVG will check if Orson Charts is on the class path and add Chart3DHints.KEY_BEGIN_ELEMENT as a synonym for SVGHints.KEY_BEGIN_GROUP so it acts in exactly the same way. To have Orson Charts set these rendering hints during chart drawing, all you need to do is:
- Code: Select all
Most Graphics2D implementations will ignore the additional rendering hints, but the SVGGraphics2D implementation will pick them up and create the required SVG group elements and references. In the end, this special integration is designed to make the feature simple to use in Orson Charts without adding dependencies for people that don't need or want it.