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

Message ListMessage List     Post MessagePost Message

  png vs svg
Posted by Leo on Sep-19-2013 11:32
Attachments:
Hello,

I am trying to test the png and to svg conversion.

I modified simpleline.pl to generate both png and svg,  see attached.

I don't see the svg has better quality than the png upon enlargement to 300%.

The way I changed simpleline.pl was "$c->makeChart("coo1.svg")", is this the right way?

I downloaded ChartDirector on Sept 10:
-rw-r--r-- 1 ltb ltb   9624778 Sep 10 10:17 chartdir_perl_linux.tar.gz
peter09.gif

  Re: png vs svg
Posted by Peter Kwan on Sep-19-2013 22:46
Hi Leo,

After you have created the chart object (after the line that calls new XYChart(...)), please add the following line:

$c->enableVectorOutput();

The ChartDirector documentation on BaseChart.makeChart contains the details:

http://www.advsofteng.com/doc/cdperl.htm#BaseChart.makeChart.htm

Hope this can help.

Regards
Peter Kwan