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

Message ListMessage List     Post MessagePost Message

  Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Carl Thompson on Mar-03-2009 00:05
Is the new version available for PHP?
If it is, can you provide a link for downloading?

Thanks.

  Re: Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Peter Kwan on Mar-03-2009 03:35
Hi Carl,

The release date of ChartDirector Ver 5 is scheduled to be Mar 9, 2009.

If you want to try it now, a release candidate for ChartDirector for PHPl Ver 5.0 Windows is at:

http://download2.advsofteng.com/v5/chartdir_php_win32.zip

(Currently, we only have a RC version for Windows.)

Hope this can help.

Regards
Peter Kwan

  Re: Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Maxx Power on Mar-03-2009 14:10
Just had a look at the new version.

Am I right in assuming that the SVG export is really just a PNG image embedded in the
SVG xml..????

It doesn't look like it is a true vector format..

  Re: Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Peter Kwan on Mar-03-2009 17:22
Hi Maxx,

ChartDirector can export the chart both as true vectors in SVG, and as images embedded in SVG.

If you want to use true vectors, you need to call enableVectorOutput immediately after you have created the chart. For example:

$c = new XYChart(..........);
$c->enableVectorOutput();

You may refer to the documentation on BaseChart.makeChart, BaseChart.makeChart2 or BaseChart.enableVectorOutput for more information.

Hope this can help.

Regards
Peter Kwan

  Re: Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Maxx Power on Mar-04-2009 07:53
Makes sense... :)
Maybe in future I should RTFM...

Cheers

  Re: Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Maxx Power on Mar-04-2009 09:35
Not sure if this is the right place to put this but since I have already raised it here:

While I can view the vector SVG files fine in the browser (renders OK) I seem to have
problems opening the SVG file in another vector program (which can handle SVGs).

For example CorelDraw will crash when I try to open the SVG file.

I have found that Inkscape will open the file fine but there seems to be a problem with
the style tag (of fonts) that CD creates.

It seems that CD creates font styles like this:

style='font:bold 16px Arial;'

However it seems some drawing packages expect it like this:

style='font-weight:bold;font-size:16px;font-family:Arial;'


I am not sure what causes CorelDraw to crash yet but if the above change can be made
then I can at least use Inkscape to work with it (and convert the SVG to other vector
formats).

Cheers
Maxx

  Re: Updated Status of ChartDirector Ver 5.0 for PHP?
Posted by Peter Kwan on Mar-04-2009 18:13
Hi Maxx,

We have tested SVG with browsers, and a number of other programs.

We found that all SVG viewers have various kinds of issues, especially for complex SVGs (such as SVG generated by a machine). At the end, we have designed our SVG to work around issues in browsers. So our SVG should be viewable and browsers.

For graphics editors (like Corel Draw, Adobe Illustrator, Inkscape), they tend to be able to open only the SVG generated by themselves, and may not open other people's SVG, even if they are fully standard compliant.

For the font issue you have mentioned in Inkscape, you would need to try the following method:

(a) Try to convince Inkscape to fix the problem. The style='font:bold 16px Arial;' is clearly standard compliant SVG, but Inkscape does not support it, so it seems to be bug in Inkscape. If Inkscape fixes it, the problem is solved.

(b) Use another script to modify the SVG output (the SVG file is just a text file). It can change something like style='font:bold 16px Arial;' to style='font-weight:bold;font-size:16px;font-family:Arial;'. The script can actually parse the SVG to do the conversion, or just use regular expression pattern matching.

Hope this can help.

Regards
Peter Kwan