ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  SVG Bug?
Posted by Mark on Jul-26-2013 00:16
I've asked ChartDirector (CD) to output an SVG file.  It does so and is rendered beautifully
in a browser.  But I need to use Batik (which is a utility for rendering and manipulating SVG
graphics), which throws an error on the SVG file that CD generated.  Batik complains that a
height is used that is less than zero.  Instead of ignoring this (apparently bogus) rectangle,
Batik refuses to display my graphic at all.

Upon inspection of the SVG file, I can find only 4 places in a 321kB file where the height
specification inside a <rect> tag is less than 0.  Specifically, one of these four lines is as
follows:

<rect id='b1039' x='134' y='97' width='4' height='-1'/>

So how can it be that CD creates a rectangle with a negative height?  Did I specify
something improperly in my Java code that creates the CD graphic?  What might that be?
Even if I coded something incorrectly, shouldn't CD be wise enough to skip over rectangles
that have 0 or negative heights or widths??

Please advise...

Mark

  Re: SVG Bug?
Posted by Peter Kwan on Jul-26-2013 21:45
Hi Mark,

It does look like a bug in ChartDirector. Is it possible to provide me with the SVG output (you may email me at pkwan@advsofteng.net)? The SVG can help me to determine which part of ChartDirector outputs the negative height rectangle.

Regards
Peter Kwan