You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/06/29 15:59:16 UTC

[Bug 53486] New: Valid input arcs produce non-rendered SVG arcs

https://issues.apache.org/bugzilla/show_bug.cgi?id=53486

          Priority: P2
            Bug ID: 53486
          Assignee: batik-dev@xmlgraphics.apache.org
           Summary: Valid input arcs produce non-rendered SVG arcs
          Severity: normal
    Classification: Unclassified
          Reporter: rolf.sigg@ergon.ch
          Hardware: PC
            Status: NEW
           Version: 1.7
         Component: SVGGraphics2D
           Product: Batik

In some situations, pie charts produced using JFreeChart and SVGGraphics2D are
rendered empty. Root cause is that the SVG spec states that elliptical arcs
with identical start and end point are omitted
(http://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters).

However, the input Arc2D is ok, it is rendered perfectly e.g. to a bitmap
image. The attached code sample produces both bitmap and SVG.

Increasing the numeric precision may help, but does not solve the problem.
There will be a case in which rounding effects will lead to identical start and
end points.

A possible approach could be to switch to circle based on the rounded points
(SVGGraphics2D switches to circle if the Arc2D describes a perfect circle).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


[Bug 53486] Valid input arcs produce non-rendered SVG arcs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53486

rolf.sigg@ergon.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #2 from rolf.sigg@ergon.ch ---
Original message to batik-users:
http://mail-archives.apache.org/mod_mbox/xmlgraphics-batik-users/201206.mbox/%3C4FEC4943.6030404%40ergon.ch%3E

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


[Bug 53486] Valid input arcs produce non-rendered SVG arcs

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53486

--- Comment #1 from rolf.sigg@ergon.ch ---
Created attachment 29007
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29007&action=edit
Sample code producing both PNG and SVG

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org